summaryrefslogtreecommitdiff
path: root/network-bittorrent.cabal
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-04-26 00:18:53 +0400
committerSam T <pxqr.sta@gmail.com>2013-04-26 00:18:53 +0400
commite7914d0fad7d5ef26f0c89e8b78b5c7b6a2868f5 (patch)
tree9a1c404292f2b37fb79595991dd6e6a73cf12535 /network-bittorrent.cabal
parent8a8e67099fd1e0182b096778682b2e8c4af8085f (diff)
~ Starting separating protocol and high level api.
It will be more convenient to provide high level api and raw protocol separated. In many use cases we don't worry about protocol but need some simple things like track swarm/peer state. So I think it will be better to refactor library in the following way: 1. Network.BitTorrent.Tracker.Protocol, Network.BitTorrent.PeerWire.Protocol For raw protocol definitions, documentation and serialization. 2. Network.BitTorrent.Tracker Network.BitTorrent.PeerWire For convenient API. Though we should not restrict user to in some particular way, so high level api should be flexible enough. In other words: mechanism, not policy/framework.
Diffstat (limited to 'network-bittorrent.cabal')
-rw-r--r--network-bittorrent.cabal11
1 files changed, 7 insertions, 4 deletions
diff --git a/network-bittorrent.cabal b/network-bittorrent.cabal
index 98423512..6494ae6a 100644
--- a/network-bittorrent.cabal
+++ b/network-bittorrent.cabal
@@ -28,6 +28,7 @@ library
28 , Network.BitTorrent.PeerID 28 , Network.BitTorrent.PeerID
29 29
30 , Network.BitTorrent.Tracker 30 , Network.BitTorrent.Tracker
31 , Network.BitTorrent.Tracker.Protocol
31 , Network.BitTorrent.Tracker.Scrape 32 , Network.BitTorrent.Tracker.Scrape
32 33
33 , Network.BitTorrent.PeerWire 34 , Network.BitTorrent.PeerWire
@@ -40,14 +41,15 @@ library
40 41
41 42
42 build-depends: 43 build-depends:
43 base == 4.* 44 base == 4.*
45 , stm >= 2.4
44 46
45 -- Data packages 47 -- Data packages
46 , bytestring >= 0.10.2.0 48 , bytestring >= 0.10.2
47 , containers >= 0.4 49 , containers >= 0.4
48 , text >= 0.11.0.0 50 , text >= 0.11.0
49 51
50 -- encoding/serializations packages 52 -- encoding/serialization packages
51 , bencoding >= 0.1 53 , bencoding >= 0.1
52 , cereal >= 0.3 54 , cereal >= 0.3
53 , urlencoded >= 0.4 55 , urlencoded >= 0.4
@@ -63,6 +65,7 @@ library
63 65
64 , filepath == 1.* 66 , filepath == 1.*
65 67
68
66 extensions: PatternGuards 69 extensions: PatternGuards
67 hs-source-dirs: src 70 hs-source-dirs: src
68-- ghc-options: -Wall 71-- ghc-options: -Wall