diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-04 01:03:55 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-04 01:03:55 +0400 |
commit | de1fee157b87b62161ac68f32bd6e72ba9a11275 (patch) | |
tree | 75b90c02937e49e1cb712f48d5823da3c90a002c /src/Network/BitTorrent/Exchange/Session/Metadata.hs | |
parent | 937342955301e9820a9bcbafcf8922cc5dd1798d (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.hs | 4 |
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 | |||
21 | import Control.Monad.State | 21 | import Control.Monad.State |
22 | import Data.ByteString as BS | 22 | import Data.ByteString as BS |
23 | import Data.ByteString.Lazy as BL | 23 | import Data.ByteString.Lazy as BL |
24 | import Data.Default | ||
24 | import Data.List as L | 25 | import Data.List as L |
25 | import Data.Tuple | 26 | import Data.Tuple |
26 | 27 | ||
@@ -41,6 +42,9 @@ data Status = Status | |||
41 | 42 | ||
42 | makeLenses ''Status | 43 | makeLenses ''Status |
43 | 44 | ||
45 | instance 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. |
45 | nullStatus :: Int -> Status | 49 | nullStatus :: Int -> Status |
46 | nullStatus ps = Status [] (Block.empty ps) | 50 | nullStatus ps = Status [] (Block.empty ps) |