diff options
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r-- | bittorrent.cabal | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal index 8ad50eca..c9eaaa47 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal | |||
@@ -29,10 +29,12 @@ source-repository head | |||
29 | type: git | 29 | type: git |
30 | location: git://github.com/pxqr/bittorrent.git | 30 | location: git://github.com/pxqr/bittorrent.git |
31 | 31 | ||
32 | |||
32 | flag testing | 33 | flag testing |
33 | description: Expose debug stuff in export declarations. | 34 | description: Expose debug stuff in export declarations. |
34 | default: False | 35 | default: False |
35 | 36 | ||
37 | |||
36 | library | 38 | library |
37 | exposed-modules: Data.Torrent | 39 | exposed-modules: Data.Torrent |
38 | , Data.Bitfield | 40 | , Data.Bitfield |
@@ -138,24 +140,6 @@ executable example | |||
138 | 140 | ||
139 | 141 | ||
140 | 142 | ||
141 | test-suite info-hash | ||
142 | type: exitcode-stdio-1.0 | ||
143 | main-is: InfoHash.hs | ||
144 | hs-source-dirs: tests | ||
145 | |||
146 | build-depends: base | ||
147 | , bytestring | ||
148 | , containers | ||
149 | , bencoding | ||
150 | , bittorrent | ||
151 | , Diff | ||
152 | |||
153 | ghc-options: -Wall | ||
154 | |||
155 | if !flag(testing) | ||
156 | buildable: False | ||
157 | |||
158 | |||
159 | test-suite properties | 143 | test-suite properties |
160 | type: exitcode-stdio-1.0 | 144 | type: exitcode-stdio-1.0 |
161 | main-is: Main.hs | 145 | main-is: Main.hs |
@@ -163,6 +147,7 @@ test-suite properties | |||
163 | build-depends: base == 4.* | 147 | build-depends: base == 4.* |
164 | , bytestring | 148 | , bytestring |
165 | , directory | 149 | , directory |
150 | , filepath | ||
166 | 151 | ||
167 | , cereal | 152 | , cereal |
168 | , network | 153 | , network |