summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bittorrent.cabal3
-rw-r--r--src/Network/BitTorrent/Core/Fingerprint.hs (renamed from src/Data/Torrent/Client.hs)2
-rw-r--r--src/Network/BitTorrent/Core/PeerId.hs2
3 files changed, 4 insertions, 3 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index 5bca228c..afd9edb0 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -43,7 +43,6 @@ library
43 hs-source-dirs: src 43 hs-source-dirs: src
44 exposed-modules: Data.Torrent 44 exposed-modules: Data.Torrent
45 Data.Torrent.Bitfield 45 Data.Torrent.Bitfield
46 Data.Torrent.Client
47 Data.Torrent.InfoHash 46 Data.Torrent.InfoHash
48 Data.Torrent.Layout 47 Data.Torrent.Layout
49 Data.Torrent.Magnet 48 Data.Torrent.Magnet
@@ -53,6 +52,7 @@ library
53 Data.Torrent.URN 52 Data.Torrent.URN
54-- Network.BitTorrent 53-- Network.BitTorrent
55 Network.BitTorrent.Core 54 Network.BitTorrent.Core
55 Network.BitTorrent.Core.Fingerprint
56 Network.BitTorrent.Core.PeerId 56 Network.BitTorrent.Core.PeerId
57 Network.BitTorrent.Core.PeerAddr 57 Network.BitTorrent.Core.PeerAddr
58-- Network.BitTorrent.DHT 58-- Network.BitTorrent.DHT
@@ -105,6 +105,7 @@ library
105 , bytestring >= 0.10 105 , bytestring >= 0.10
106 , containers >= 0.5 106 , containers >= 0.5
107 , data-default >= 0.4 107 , data-default >= 0.4
108-- , data-dword
108 , intset >= 0.1 109 , intset >= 0.1
109 , split >= 0.2 110 , split >= 0.2
110 , text >= 0.11.0 111 , text >= 0.11.0
diff --git a/src/Data/Torrent/Client.hs b/src/Network/BitTorrent/Core/Fingerprint.hs
index a21a9c92..e2fbb777 100644
--- a/src/Data/Torrent/Client.hs
+++ b/src/Network/BitTorrent/Core/Fingerprint.hs
@@ -21,7 +21,7 @@
21-- done using 'Network.BitTorrent.Extension'! 21-- done using 'Network.BitTorrent.Extension'!
22-- 22--
23{-# OPTIONS -fno-warn-orphans #-} 23{-# OPTIONS -fno-warn-orphans #-}
24module Data.Torrent.Client 24module Network.BitTorrent.Core.Fingerprint
25 ( ClientImpl (..) 25 ( ClientImpl (..)
26 , ClientInfo (..) 26 , ClientInfo (..)
27 , libClientInfo 27 , libClientInfo
diff --git a/src/Network/BitTorrent/Core/PeerId.hs b/src/Network/BitTorrent/Core/PeerId.hs
index 1b4409a8..8deb854a 100644
--- a/src/Network/BitTorrent/Core/PeerId.hs
+++ b/src/Network/BitTorrent/Core/PeerId.hs
@@ -62,7 +62,7 @@ import Text.PrettyPrint hiding ((<>))
62import Text.PrettyPrint.Class 62import Text.PrettyPrint.Class
63import Text.Read (readMaybe) 63import Text.Read (readMaybe)
64 64
65import Data.Torrent.Client 65import Network.BitTorrent.Core.Fingerprint
66 66
67-- TODO use unpacked Word160 form (length is known statically) 67-- TODO use unpacked Word160 form (length is known statically)
68 68