diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-08-16 09:34:18 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-08-16 09:34:18 +0400 |
commit | 9e7048216351f81b8d5c8c8e66b76b862ac9622f (patch) | |
tree | 7d586808cfc25ca2f62c79c5071279ff099dd2bb /bittorrent.cabal | |
parent | 13084c123a7f580400aed5881e8fced9e9ed53f1 (diff) |
~ Use newer cabal.
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r-- | bittorrent.cabal | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal index 8e8f3d22..fca04ef7 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal | |||
@@ -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/pxqr/bittorrent | 13 | homepage: https://github.com/pxqr/bittorrent |
@@ -37,6 +37,10 @@ flag testing | |||
37 | 37 | ||
38 | library | 38 | library |
39 | default-language: Haskell2010 | 39 | default-language: Haskell2010 |
40 | default-extensions: PatternGuards | ||
41 | , OverloadedStrings | ||
42 | , RecordWildCards | ||
43 | hs-source-dirs: src | ||
40 | exposed-modules: Network.BitTorrent | 44 | exposed-modules: Network.BitTorrent |
41 | , Network.BitTorrent.Extension | 45 | , Network.BitTorrent.Extension |
42 | , Network.BitTorrent.Peer | 46 | , Network.BitTorrent.Peer |
@@ -112,12 +116,6 @@ library | |||
112 | -- Misc | 116 | -- Misc |
113 | , pretty | 117 | , pretty |
114 | 118 | ||
115 | -- , bits-atomic >= 0.1 | ||
116 | |||
117 | extensions: PatternGuards | ||
118 | , OverloadedStrings | ||
119 | , RecordWildCards | ||
120 | hs-source-dirs: src | ||
121 | if flag(testing) | 119 | if flag(testing) |
122 | cpp-options: -DTESTING | 120 | cpp-options: -DTESTING |
123 | ghc-options: -Wall | 121 | ghc-options: -Wall |
@@ -126,9 +124,11 @@ library | |||
126 | 124 | ||
127 | 125 | ||
128 | test-suite properties | 126 | test-suite properties |
127 | default-language: Haskell2010 | ||
128 | default-extensions: | ||
129 | type: exitcode-stdio-1.0 | 129 | type: exitcode-stdio-1.0 |
130 | main-is: Main.hs | ||
131 | hs-source-dirs: tests | 130 | hs-source-dirs: tests |
131 | main-is: Main.hs | ||
132 | build-depends: base == 4.* | 132 | build-depends: base == 4.* |
133 | , bytestring | 133 | , bytestring |
134 | , directory | 134 | , directory |
@@ -156,6 +156,8 @@ test-suite properties | |||
156 | 156 | ||
157 | 157 | ||
158 | benchmark benchmarks | 158 | benchmark benchmarks |
159 | default-language: Haskell2010 | ||
160 | default-extensions: | ||
159 | type: exitcode-stdio-1.0 | 161 | type: exitcode-stdio-1.0 |
160 | main-is: Main.hs | 162 | main-is: Main.hs |
161 | hs-source-dirs: bench | 163 | hs-source-dirs: bench |
@@ -177,13 +179,14 @@ benchmark benchmarks | |||
177 | 179 | ||
178 | 180 | ||
179 | executable example | 181 | executable example |
182 | default-language: Haskell2010 | ||
180 | main-is: Main.hs | 183 | main-is: Main.hs |
181 | hs-source-dirs: examples | 184 | hs-source-dirs: examples |
182 | build-depends: base == 4.* | 185 | build-depends: base == 4.* |
183 | , bittorrent | 186 | , bittorrent |
184 | , mtl | 187 | , mtl |
185 | ghc-options: -prof | 188 | ghc-options: |
186 | -- -threaded -eventlog | ||
187 | ghc-prof-options: -prof -rtsopts | 189 | ghc-prof-options: -prof -rtsopts |
190 | -- -threaded -eventlog | ||
188 | if !flag(testing) | 191 | if !flag(testing) |
189 | buildable: False | 192 | buildable: False |