diff options
Diffstat (limited to 'bencoding.cabal')
-rw-r--r-- | bencoding.cabal | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/bencoding.cabal b/bencoding.cabal index 1f50c1d..346ff70 100644 --- a/bencoding.cabal +++ b/bencoding.cabal | |||
@@ -10,7 +10,7 @@ maintainer: Sam T. <pxqr.sta@gmail.com> | |||
10 | copyright: (c) 2013, Sam T. | 10 | copyright: (c) 2013, Sam T. |
11 | category: Data | 11 | category: Data |
12 | build-type: Simple | 12 | build-type: Simple |
13 | cabal-version: >= 1.8 | 13 | cabal-version: >= 1.10 |
14 | description: | 14 | description: |
15 | 15 | ||
16 | A library for encoding and decoding of BEncode data. | 16 | A library for encoding and decoding of BEncode data. |
@@ -27,8 +27,10 @@ source-repository head | |||
27 | type: git | 27 | type: git |
28 | location: git://github.com/cobit/bencoding.git | 28 | location: git://github.com/cobit/bencoding.git |
29 | 29 | ||
30 | |||
31 | library | 30 | library |
31 | default-language: Haskell2010 | ||
32 | default-extensions: PatternGuards | ||
33 | hs-source-dirs: src | ||
32 | exposed-modules: Data.BEncode | 34 | exposed-modules: Data.BEncode |
33 | build-depends: base == 4.* | 35 | build-depends: base == 4.* |
34 | , deepseq == 1.3.* | 36 | , deepseq == 1.3.* |
@@ -37,26 +39,23 @@ library | |||
37 | , attoparsec >= 0.10 | 39 | , attoparsec >= 0.10 |
38 | , text >= 0.11 | 40 | , text >= 0.11 |
39 | , pretty | 41 | , pretty |
40 | |||
41 | hs-source-dirs: src | ||
42 | extensions: PatternGuards | ||
43 | ghc-options: -Wall -fno-warn-unused-do-bind | 42 | ghc-options: -Wall -fno-warn-unused-do-bind |
44 | 43 | ||
45 | |||
46 | executable pp | 44 | executable pp |
45 | default-language: Haskell2010 | ||
46 | hs-source-dirs: pp | ||
47 | main-is: pp.hs | 47 | main-is: pp.hs |
48 | build-depends: base == 4.* | 48 | build-depends: base == 4.* |
49 | , bytestring | 49 | , bytestring |
50 | , bencoding | 50 | , bencoding |
51 | hs-source-dirs: pp | ||
52 | ghc-options: -Wall | 51 | ghc-options: -Wall |
53 | 52 | ||
54 | 53 | ||
55 | test-suite properties | 54 | test-suite properties |
56 | type: exitcode-stdio-1.0 | 55 | type: exitcode-stdio-1.0 |
57 | main-is: properties.hs | 56 | default-language: Haskell2010 |
58 | hs-source-dirs: tests | 57 | hs-source-dirs: tests |
59 | 58 | main-is: properties.hs | |
60 | build-depends: base == 4.* | 59 | build-depends: base == 4.* |
61 | , containers >= 0.4 | 60 | , containers >= 0.4 |
62 | , bytestring >= 0.10.0.0 | 61 | , bytestring >= 0.10.0.0 |
@@ -66,15 +65,14 @@ test-suite properties | |||
66 | , test-framework-quickcheck2 | 65 | , test-framework-quickcheck2 |
67 | , QuickCheck | 66 | , QuickCheck |
68 | , bencoding | 67 | , bencoding |
69 | |||
70 | ghc-options: -Wall -fno-warn-orphans | 68 | ghc-options: -Wall -fno-warn-orphans |
71 | 69 | ||
72 | 70 | ||
73 | benchmark bench-comparison | 71 | benchmark bench-comparison |
74 | type: exitcode-stdio-1.0 | 72 | type: exitcode-stdio-1.0 |
75 | main-is: Main.hs | 73 | default-language: Haskell2010 |
76 | hs-source-dirs: bench | 74 | hs-source-dirs: bench |
77 | 75 | main-is: Main.hs | |
78 | build-depends: base == 4.* | 76 | build-depends: base == 4.* |
79 | , attoparsec >= 0.10 | 77 | , attoparsec >= 0.10 |
80 | , bytestring >= 0.10.0.0 | 78 | , bytestring >= 0.10.0.0 |
@@ -85,5 +83,4 @@ benchmark bench-comparison | |||
85 | , bencoding | 83 | , bencoding |
86 | , bencode >= 0.5 | 84 | , bencode >= 0.5 |
87 | , AttoBencode >= 0.2 | 85 | , AttoBencode >= 0.2 |
88 | |||
89 | ghc-options: -O2 -Wall -fno-warn-orphans | 86 | ghc-options: -O2 -Wall -fno-warn-orphans |