diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-07-04 02:18:13 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-07-04 02:18:13 +0400 |
commit | 3b76aa644cffbfb36953146663930b69ced0d18c (patch) | |
tree | a4365f0a26294da35215e617497edba529cb016b | |
parent | 6906ff501b31ea0328c6db4038ada43e53a7d46b (diff) |
~ Minor changes.
-rw-r--r-- | bittorrent.cabal | 38 | ||||
-rw-r--r-- | tests/Main.hs | 10 |
2 files changed, 24 insertions, 24 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal index c9eaaa47..e4f84523 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal | |||
@@ -44,22 +44,17 @@ library | |||
44 | , Network.BitTorrent.Tracker | 44 | , Network.BitTorrent.Tracker |
45 | , Network.BitTorrent.Exchange | 45 | , Network.BitTorrent.Exchange |
46 | , System.Torrent.Storage | 46 | , System.Torrent.Storage |
47 | |||
48 | other-modules: Network.BitTorrent.Internal | 47 | other-modules: Network.BitTorrent.Internal |
49 | |||
50 | if flag(testing) | 48 | if flag(testing) |
51 | exposed-modules: Network.BitTorrent.Exchange.Protocol | 49 | exposed-modules: Network.BitTorrent.Exchange.Protocol |
52 | , Network.BitTorrent.Tracker.Protocol | 50 | , Network.BitTorrent.Tracker.Protocol |
53 | , System.IO.MMap.Fixed | 51 | , System.IO.MMap.Fixed |
54 | |||
55 | if !flag(testing) | 52 | if !flag(testing) |
56 | other-modules: Network.BitTorrent.Exchange.Protocol | 53 | other-modules: Network.BitTorrent.Exchange.Protocol |
57 | , Network.BitTorrent.Tracker.Protocol | 54 | , Network.BitTorrent.Tracker.Protocol |
58 | , System.IO.MMap.Fixed | 55 | , System.IO.MMap.Fixed |
59 | 56 | ||
60 | 57 | build-depends: base == 4.* | |
61 | build-depends: | ||
62 | base == 4.* | ||
63 | 58 | ||
64 | -- Control | 59 | -- Control |
65 | , mtl | 60 | , mtl |
@@ -124,22 +119,6 @@ library | |||
124 | 119 | ||
125 | 120 | ||
126 | 121 | ||
127 | executable example | ||
128 | main-is: Main.hs | ||
129 | hs-source-dirs: examples | ||
130 | build-depends: base == 4.* | ||
131 | , bittorrent | ||
132 | , mtl | ||
133 | |||
134 | ghc-options: -prof | ||
135 | -- -threaded -eventlog | ||
136 | ghc-prof-options: -prof -rtsopts | ||
137 | |||
138 | if !flag(testing) | ||
139 | buildable: False | ||
140 | |||
141 | |||
142 | |||
143 | test-suite properties | 122 | test-suite properties |
144 | type: exitcode-stdio-1.0 | 123 | type: exitcode-stdio-1.0 |
145 | main-is: Main.hs | 124 | main-is: Main.hs |
@@ -163,7 +142,6 @@ test-suite properties | |||
163 | , bittorrent | 142 | , bittorrent |
164 | 143 | ||
165 | ghc-options: -Wall -fno-warn-orphans | 144 | ghc-options: -Wall -fno-warn-orphans |
166 | |||
167 | if !flag(testing) | 145 | if !flag(testing) |
168 | buildable: False | 146 | buildable: False |
169 | 147 | ||
@@ -173,7 +151,6 @@ benchmark benchmarks | |||
173 | type: exitcode-stdio-1.0 | 151 | type: exitcode-stdio-1.0 |
174 | main-is: Main.hs | 152 | main-is: Main.hs |
175 | hs-source-dirs: bench | 153 | hs-source-dirs: bench |
176 | |||
177 | build-depends: base | 154 | build-depends: base |
178 | , bytestring | 155 | , bytestring |
179 | , cereal | 156 | , cereal |
@@ -185,6 +162,19 @@ benchmark benchmarks | |||
185 | , bittorrent | 162 | , bittorrent |
186 | 163 | ||
187 | ghc-options: -O2 -Wall -fno-warn-orphans | 164 | ghc-options: -O2 -Wall -fno-warn-orphans |
165 | if !flag(testing) | ||
166 | buildable: False | ||
167 | |||
188 | 168 | ||
169 | |||
170 | executable example | ||
171 | main-is: Main.hs | ||
172 | hs-source-dirs: examples | ||
173 | build-depends: base == 4.* | ||
174 | , bittorrent | ||
175 | , mtl | ||
176 | ghc-options: -prof | ||
177 | -- -threaded -eventlog | ||
178 | ghc-prof-options: -prof -rtsopts | ||
189 | if !flag(testing) | 179 | if !flag(testing) |
190 | buildable: False | 180 | buildable: False |
diff --git a/tests/Main.hs b/tests/Main.hs index 3c7bfcd3..44ea3393 100644 --- a/tests/Main.hs +++ b/tests/Main.hs | |||
@@ -1,3 +1,13 @@ | |||
1 | -- | | ||
2 | -- Copyright : (c) Sam T. 2013 | ||
3 | -- License : MIT | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : experimental | ||
6 | -- Portability : portable | ||
7 | -- | ||
8 | -- Do not add other (than this) test suites without need. Do not use | ||
9 | -- linux-specific paths, use 'filepath' and 'directory' machinery. | ||
10 | -- | ||
1 | {-# LANGUAGE StandaloneDeriving #-} | 11 | {-# LANGUAGE StandaloneDeriving #-} |
2 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | 12 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} |
3 | {-# LANGUAGE OverloadedStrings #-} | 13 | {-# LANGUAGE OverloadedStrings #-} |