diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-08-27 00:33:05 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-08-27 00:33:05 +0400 |
commit | 2627337f24574cda88b905a3b8df8bbf43604d6a (patch) | |
tree | b794e52dd36d5f424d6db86a211323bd37a16c35 /krpc.cabal | |
parent | d23955e0684a575dca6d40dda46583ba9c1d285a (diff) |
~ Adapt package for newer version of cabal.
Diffstat (limited to 'krpc.cabal')
-rw-r--r-- | krpc.cabal | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -7,7 +7,7 @@ maintainer: Sam T. <pxqr.sta@gmail.com> | |||
7 | copyright: (c) 2013, Sam T. | 7 | copyright: (c) 2013, Sam T. |
8 | category: Network | 8 | category: Network |
9 | build-type: Simple | 9 | build-type: Simple |
10 | cabal-version: >=1.8 | 10 | cabal-version: >= 1.10 |
11 | tested-with: GHC == 7.4.1 | 11 | tested-with: GHC == 7.4.1 |
12 | , GHC == 7.6.3 | 12 | , GHC == 7.6.3 |
13 | homepage: https://github.com/cobit/krpc | 13 | homepage: https://github.com/cobit/krpc |
@@ -30,10 +30,12 @@ source-repository head | |||
30 | 30 | ||
31 | 31 | ||
32 | library | 32 | library |
33 | default-language: Haskell2010 | ||
34 | default-extensions: PatternGuards | ||
35 | hs-source-dirs: src | ||
33 | exposed-modules: Remote.KRPC | 36 | exposed-modules: Remote.KRPC |
34 | , Remote.KRPC.Protocol | 37 | , Remote.KRPC.Protocol |
35 | , Remote.KRPC.Scheme | 38 | , Remote.KRPC.Scheme |
36 | |||
37 | build-depends: base == 4.* | 39 | build-depends: base == 4.* |
38 | 40 | ||
39 | , lifted-base >= 0.1.1 | 41 | , lifted-base >= 0.1.1 |
@@ -42,18 +44,16 @@ library | |||
42 | 44 | ||
43 | , bytestring >= 0.10 | 45 | , bytestring >= 0.10 |
44 | , containers >= 0.4 | 46 | , containers >= 0.4 |
45 | , bencoding >= 0.1 | 47 | , bencoding >= 0.2 |
46 | 48 | ||
47 | , network >= 2.3 | 49 | , network >= 2.3 |
48 | |||
49 | hs-source-dirs: src | ||
50 | extensions: PatternGuards | ||
51 | ghc-options: -Wall | 50 | ghc-options: -Wall |
52 | 51 | ||
53 | 52 | ||
54 | |||
55 | test-suite test-client | 53 | test-suite test-client |
56 | type: exitcode-stdio-1.0 | 54 | type: exitcode-stdio-1.0 |
55 | default-language: Haskell2010 | ||
56 | hs-source-dirs: tests | ||
57 | main-is: Client.hs | 57 | main-is: Client.hs |
58 | other-modules: Shared | 58 | other-modules: Shared |
59 | build-depends: base == 4.* | 59 | build-depends: base == 4.* |
@@ -69,9 +69,10 @@ test-suite test-client | |||
69 | , test-framework | 69 | , test-framework |
70 | , test-framework-hunit | 70 | , test-framework-hunit |
71 | 71 | ||
72 | hs-source-dirs: tests | ||
73 | 72 | ||
74 | executable test-server | 73 | executable test-server |
74 | default-language: Haskell2010 | ||
75 | hs-source-dirs: tests | ||
75 | main-is: Server.hs | 76 | main-is: Server.hs |
76 | other-modules: Shared | 77 | other-modules: Shared |
77 | build-depends: base == 4.* | 78 | build-depends: base == 4.* |
@@ -79,20 +80,22 @@ executable test-server | |||
79 | , bencoding | 80 | , bencoding |
80 | , krpc | 81 | , krpc |
81 | 82 | ||
82 | hs-source-dirs: tests | ||
83 | |||
84 | |||
85 | |||
86 | |||
87 | executable bench-server | 83 | executable bench-server |
88 | main-is: Server.hs | 84 | default-language: Haskell2010 |
89 | build-depends: base == 4.*, krpc, bytestring | ||
90 | hs-source-dirs: bench | 85 | hs-source-dirs: bench |
86 | main-is: Server.hs | ||
87 | build-depends: base == 4.* | ||
88 | , bytestring | ||
89 | , krpc | ||
91 | ghc-options: -fforce-recomp | 90 | ghc-options: -fforce-recomp |
92 | 91 | ||
93 | benchmark bench-client | 92 | benchmark bench-client |
94 | type: exitcode-stdio-1.0 | 93 | type: exitcode-stdio-1.0 |
95 | main-is: Main.hs | 94 | default-language: Haskell2010 |
96 | hs-source-dirs: bench | 95 | hs-source-dirs: bench |
97 | build-depends: base == 4.*, krpc, criterion, bytestring | 96 | main-is: Main.hs |
97 | build-depends: base == 4.* | ||
98 | , bytestring | ||
99 | , criterion | ||
100 | , krpc | ||
98 | ghc-options: -O2 -fforce-recomp \ No newline at end of file | 101 | ghc-options: -O2 -fforce-recomp \ No newline at end of file |