diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-11 11:01:27 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-11 11:01:27 +0400 |
commit | 7c14f44783d4f5e241ce37027dd60fefcc3f5382 (patch) | |
tree | 685643cd1a1f836b261b29faba5a7c71fcb2ad46 /src/Network/BitTorrent/Internal.hs | |
parent | 0e3903fa3d486c57504837fd497a3a348793f7fc (diff) |
~ Use data-default for default values.
Diffstat (limited to 'src/Network/BitTorrent/Internal.hs')
-rw-r--r-- | src/Network/BitTorrent/Internal.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Internal.hs b/src/Network/BitTorrent/Internal.hs index 91dc35d5..38087f0d 100644 --- a/src/Network/BitTorrent/Internal.hs +++ b/src/Network/BitTorrent/Internal.hs | |||
@@ -27,6 +27,7 @@ import Control.Concurrent.STM | |||
27 | import Control.Exception | 27 | import Control.Exception |
28 | 28 | ||
29 | import Data.IORef | 29 | import Data.IORef |
30 | import Data.Default | ||
30 | import Data.Function | 31 | import Data.Function |
31 | import Data.Ord | 32 | import Data.Ord |
32 | import Data.Set as S | 33 | import Data.Set as S |
@@ -196,7 +197,7 @@ withPeerSession ss @ SwarmSession {..} addr | |||
196 | maxOutcomingTime (sendKA sock) | 197 | maxOutcomingTime (sendKA sock) |
197 | <*> newChan | 198 | <*> newChan |
198 | <*> pure clientBitfield | 199 | <*> pure clientBitfield |
199 | <*> newIORef initSessionStatus | 200 | <*> newIORef def |
200 | return (sock, ps) | 201 | return (sock, ps) |
201 | 202 | ||
202 | closeSession = close . fst | 203 | closeSession = close . fst |