summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Session/Metadata.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-04-04 01:03:55 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-04-04 01:03:55 +0400
commitde1fee157b87b62161ac68f32bd6e72ba9a11275 (patch)
tree75b90c02937e49e1cb712f48d5823da3c90a002c /src/Network/BitTorrent/Exchange/Session/Metadata.hs
parent937342955301e9820a9bcbafcf8922cc5dd1798d (diff)
[Exchange] newSession now can take infohash only
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Session/Metadata.hs')
-rw-r--r--src/Network/BitTorrent/Exchange/Session/Metadata.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Exchange/Session/Metadata.hs b/src/Network/BitTorrent/Exchange/Session/Metadata.hs
index 79fd03b0..79156e2e 100644
--- a/src/Network/BitTorrent/Exchange/Session/Metadata.hs
+++ b/src/Network/BitTorrent/Exchange/Session/Metadata.hs
@@ -21,6 +21,7 @@ import Control.Monad.Reader
21import Control.Monad.State 21import Control.Monad.State
22import Data.ByteString as BS 22import Data.ByteString as BS
23import Data.ByteString.Lazy as BL 23import Data.ByteString.Lazy as BL
24import Data.Default
24import Data.List as L 25import Data.List as L
25import Data.Tuple 26import Data.Tuple
26 27
@@ -41,6 +42,9 @@ data Status = Status
41 42
42makeLenses ''Status 43makeLenses ''Status
43 44
45instance Default Status where
46 def = error "default status"
47
44-- | Create a new scheduler for infodict of the given size. 48-- | Create a new scheduler for infodict of the given size.
45nullStatus :: Int -> Status 49nullStatus :: Int -> Status
46nullStatus ps = Status [] (Block.empty ps) 50nullStatus ps = Status [] (Block.empty ps)