summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Internal.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-11 11:01:27 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-11 11:01:27 +0400
commit7c14f44783d4f5e241ce37027dd60fefcc3f5382 (patch)
tree685643cd1a1f836b261b29faba5a7c71fcb2ad46 /src/Network/BitTorrent/Internal.hs
parent0e3903fa3d486c57504837fd497a3a348793f7fc (diff)
~ Use data-default for default values.
Diffstat (limited to 'src/Network/BitTorrent/Internal.hs')
-rw-r--r--src/Network/BitTorrent/Internal.hs3
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
27import Control.Exception 27import Control.Exception
28 28
29import Data.IORef 29import Data.IORef
30import Data.Default
30import Data.Function 31import Data.Function
31import Data.Ord 32import Data.Ord
32import Data.Set as S 33import 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