diff options
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r-- | bittorrent.cabal | 63 |
1 files changed, 29 insertions, 34 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal index af6caefa..550a727d 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal | |||
@@ -34,6 +34,10 @@ source-repository this | |||
34 | branch: master | 34 | branch: master |
35 | tag: v0.0.0.3 | 35 | tag: v0.0.0.3 |
36 | 36 | ||
37 | flag testing | ||
38 | description: Whether to build tests. | ||
39 | default: False | ||
40 | |||
37 | flag examples | 41 | flag examples |
38 | description: Whether to build examples. | 42 | description: Whether to build examples. |
39 | default: False | 43 | default: False |
@@ -45,22 +49,11 @@ library | |||
45 | , RecordWildCards | 49 | , RecordWildCards |
46 | hs-source-dirs: src | 50 | hs-source-dirs: src |
47 | exposed-modules: Data.Torrent | 51 | exposed-modules: Data.Torrent |
48 | Data.Torrent.Bitfield | ||
49 | Data.Torrent.InfoHash | ||
50 | Data.Torrent.Layout | ||
51 | Data.Torrent.Magnet | ||
52 | Data.Torrent.Piece | ||
53 | Data.Torrent.Progress | ||
54 | Data.Torrent.Tree | ||
55 | Network.BitTorrent | 52 | Network.BitTorrent |
53 | Network.BitTorrent.Address | ||
56 | Network.BitTorrent.Client | 54 | Network.BitTorrent.Client |
57 | Network.BitTorrent.Client.Types | 55 | Network.BitTorrent.Client.Types |
58 | Network.BitTorrent.Client.Handle | 56 | Network.BitTorrent.Client.Handle |
59 | Network.BitTorrent.Core | ||
60 | Network.BitTorrent.Core.Fingerprint | ||
61 | Network.BitTorrent.Core.NodeInfo | ||
62 | Network.BitTorrent.Core.PeerId | ||
63 | Network.BitTorrent.Core.PeerAddr | ||
64 | Network.BitTorrent.DHT | 57 | Network.BitTorrent.DHT |
65 | Network.BitTorrent.DHT.ContactInfo | 58 | Network.BitTorrent.DHT.ContactInfo |
66 | Network.BitTorrent.DHT.Message | 59 | Network.BitTorrent.DHT.Message |
@@ -69,17 +62,13 @@ library | |||
69 | Network.BitTorrent.DHT.Session | 62 | Network.BitTorrent.DHT.Session |
70 | Network.BitTorrent.DHT.Token | 63 | Network.BitTorrent.DHT.Token |
71 | Network.BitTorrent.Exchange | 64 | Network.BitTorrent.Exchange |
72 | Network.BitTorrent.Exchange.Assembler | 65 | Network.BitTorrent.Exchange.Bitfield |
73 | Network.BitTorrent.Exchange.Block | 66 | Network.BitTorrent.Exchange.Block |
74 | Network.BitTorrent.Exchange.Connection | 67 | Network.BitTorrent.Exchange.Connection |
68 | Network.BitTorrent.Exchange.Download | ||
75 | Network.BitTorrent.Exchange.Manager | 69 | Network.BitTorrent.Exchange.Manager |
76 | Network.BitTorrent.Exchange.Message | 70 | Network.BitTorrent.Exchange.Message |
77 | Network.BitTorrent.Exchange.Selection | ||
78 | Network.BitTorrent.Exchange.Session | 71 | Network.BitTorrent.Exchange.Session |
79 | Network.BitTorrent.Exchange.Session.Metadata | ||
80 | Network.BitTorrent.Exchange.Session.Status | ||
81 | Network.BitTorrent.Internal.Cache | ||
82 | Network.BitTorrent.Internal.Types | ||
83 | Network.BitTorrent.Tracker | 72 | Network.BitTorrent.Tracker |
84 | Network.BitTorrent.Tracker.List | 73 | Network.BitTorrent.Tracker.List |
85 | Network.BitTorrent.Tracker.Message | 74 | Network.BitTorrent.Tracker.Message |
@@ -87,9 +76,23 @@ library | |||
87 | Network.BitTorrent.Tracker.RPC.HTTP | 76 | Network.BitTorrent.Tracker.RPC.HTTP |
88 | Network.BitTorrent.Tracker.RPC.UDP | 77 | Network.BitTorrent.Tracker.RPC.UDP |
89 | Network.BitTorrent.Tracker.Session | 78 | Network.BitTorrent.Tracker.Session |
90 | System.Torrent.FileMap | ||
91 | System.Torrent.Storage | 79 | System.Torrent.Storage |
92 | other-modules: Paths_bittorrent | 80 | other-modules: Paths_bittorrent |
81 | if flag(testing) | ||
82 | exposed-modules: | ||
83 | Network.BitTorrent.Internal.Cache | ||
84 | Network.BitTorrent.Internal.Progress | ||
85 | Network.BitTorrent.Internal.Types | ||
86 | System.Torrent.FileMap | ||
87 | System.Torrent.Tree | ||
88 | else | ||
89 | other-modules: | ||
90 | Network.BitTorrent.Internal.Cache | ||
91 | Network.BitTorrent.Internal.Progress | ||
92 | Network.BitTorrent.Internal.Types | ||
93 | System.Torrent.FileMap | ||
94 | System.Torrent.Tree | ||
95 | |||
93 | build-depends: base == 4.* | 96 | build-depends: base == 4.* |
94 | , lifted-base | 97 | , lifted-base |
95 | , bits-extras >= 0.1.2 | 98 | , bits-extras >= 0.1.2 |
@@ -113,8 +116,8 @@ library | |||
113 | , stm >= 2.4 | 116 | , stm >= 2.4 |
114 | 117 | ||
115 | -- Streaming | 118 | -- Streaming |
116 | , conduit >= 1.0 | 119 | , conduit >= 1.1 |
117 | , network-conduit >= 1.0 | 120 | , conduit-extra >= 1.1 |
118 | , cereal-conduit >= 0.5 | 121 | , cereal-conduit >= 0.5 |
119 | 122 | ||
120 | -- * Logging | 123 | -- * Logging |
@@ -180,19 +183,9 @@ test-suite spec | |||
180 | other-modules: Spec | 183 | other-modules: Spec |
181 | Config | 184 | Config |
182 | 185 | ||
183 | Data.Torrent.BitfieldSpec | 186 | Data.TorrentSpec |
184 | Data.Torrent.InfoHashSpec | ||
185 | Data.Torrent.LayoutSpec | ||
186 | Data.Torrent.MagnetSpec | ||
187 | Data.Torrent.MetainfoSpec | ||
188 | Data.Torrent.PieceSpec | ||
189 | Data.Torrent.ProgressSpec | ||
190 | Network.BitTorrent.Client.HandleSpec | 187 | Network.BitTorrent.Client.HandleSpec |
191 | Network.BitTorrent.CoreSpec | 188 | Network.BitTorrent.CoreSpec |
192 | Network.BitTorrent.Core.FingerprintSpec | ||
193 | Network.BitTorrent.Core.NodeInfoSpec | ||
194 | Network.BitTorrent.Core.PeerAddrSpec | ||
195 | Network.BitTorrent.Core.PeerIdSpec | ||
196 | Network.BitTorrent.DHTSpec | 189 | Network.BitTorrent.DHTSpec |
197 | Network.BitTorrent.DHT.TestData | 190 | Network.BitTorrent.DHT.TestData |
198 | Network.BitTorrent.DHT.MessageSpec | 191 | Network.BitTorrent.DHT.MessageSpec |
@@ -201,6 +194,7 @@ test-suite spec | |||
201 | Network.BitTorrent.DHT.SessionSpec | 194 | Network.BitTorrent.DHT.SessionSpec |
202 | Network.BitTorrent.DHT.TokenSpec | 195 | Network.BitTorrent.DHT.TokenSpec |
203 | Network.BitTorrent.Internal.CacheSpec | 196 | Network.BitTorrent.Internal.CacheSpec |
197 | Network.BitTorrent.Internal.ProgressSpec | ||
204 | Network.BitTorrent.Tracker.TestData | 198 | Network.BitTorrent.Tracker.TestData |
205 | Network.BitTorrent.Tracker.ListSpec | 199 | Network.BitTorrent.Tracker.ListSpec |
206 | Network.BitTorrent.Tracker.MessageSpec | 200 | Network.BitTorrent.Tracker.MessageSpec |
@@ -208,10 +202,11 @@ test-suite spec | |||
208 | Network.BitTorrent.Tracker.RPC.HTTPSpec | 202 | Network.BitTorrent.Tracker.RPC.HTTPSpec |
209 | Network.BitTorrent.Tracker.RPC.UDPSpec | 203 | Network.BitTorrent.Tracker.RPC.UDPSpec |
210 | Network.BitTorrent.Tracker.SessionSpec | 204 | Network.BitTorrent.Tracker.SessionSpec |
205 | Network.BitTorrent.Exchange.BitfieldSpec | ||
211 | Network.BitTorrent.Exchange.ConnectionSpec | 206 | Network.BitTorrent.Exchange.ConnectionSpec |
207 | Network.BitTorrent.Exchange.DownloadSpec | ||
212 | Network.BitTorrent.Exchange.MessageSpec | 208 | Network.BitTorrent.Exchange.MessageSpec |
213 | Network.BitTorrent.Exchange.SessionSpec | 209 | Network.BitTorrent.Exchange.SessionSpec |
214 | Network.BitTorrent.Exchange.Session.MetadataSpec | ||
215 | System.Torrent.StorageSpec | 210 | System.Torrent.StorageSpec |
216 | System.Torrent.FileMapSpec | 211 | System.Torrent.FileMapSpec |
217 | build-depends: base == 4.* | 212 | build-depends: base == 4.* |
@@ -228,13 +223,13 @@ test-suite spec | |||
228 | , time | 223 | , time |
229 | 224 | ||
230 | -- * Serialization | 225 | -- * Serialization |
231 | , aeson | ||
232 | , cereal | 226 | , cereal |
233 | 227 | ||
234 | -- * Monads | 228 | -- * Monads |
235 | , mtl | 229 | , mtl |
236 | , resourcet | 230 | , resourcet |
237 | , conduit | 231 | , conduit |
232 | , conduit-extra | ||
238 | , monad-loops | 233 | , monad-loops |
239 | , monad-logger | 234 | , monad-logger |
240 | 235 | ||