summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Sessions.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-07-16 20:40:05 +0400
committerSam T <pxqr.sta@gmail.com>2013-07-16 20:40:05 +0400
commitbc1c976e9175b4ac13430ba9c23ea8b099401e9e (patch)
tree67a0d7064d1c0f843e8efbdaa1e2b32e35f1955b /src/Network/BitTorrent/Sessions.hs
parent412919e88e1d60303f7a14134e37f27becf5f959 (diff)
~ Fix some long standing warnings.
Diffstat (limited to 'src/Network/BitTorrent/Sessions.hs')
-rw-r--r--src/Network/BitTorrent/Sessions.hs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Network/BitTorrent/Sessions.hs b/src/Network/BitTorrent/Sessions.hs
index 2118ccf0..5047f06c 100644
--- a/src/Network/BitTorrent/Sessions.hs
+++ b/src/Network/BitTorrent/Sessions.hs
@@ -51,7 +51,7 @@ import Control.Applicative
51import Control.Concurrent 51import Control.Concurrent
52import Control.Concurrent.STM 52import Control.Concurrent.STM
53import Control.Concurrent.MSem as MSem 53import Control.Concurrent.MSem as MSem
54import Control.Monad (when, forever, (>=>)) 54import Control.Monad (forever, (>=>))
55import Control.Exception 55import Control.Exception
56import Control.Monad.Trans 56import Control.Monad.Trans
57 57
@@ -61,12 +61,9 @@ import Data.HashMap.Strict as HM
61import Data.Foldable as F 61import Data.Foldable as F
62import Data.Set as S 62import Data.Set as S
63 63
64import Data.Serialize hiding (get)
65
66import Network hiding (accept) 64import Network hiding (accept)
67import Network.BSD 65import Network.BSD
68import Network.Socket 66import Network.Socket
69import Network.Socket.ByteString
70 67
71import Data.Bitfield as BF 68import Data.Bitfield as BF
72import Data.Torrent 69import Data.Torrent
@@ -120,9 +117,7 @@ torrentPresence ClientSession {..} ih = do
120 117
121startListener :: ClientSession -> PortNumber -> IO () 118startListener :: ClientSession -> PortNumber -> IO ()
122startListener cs @ ClientSession {..} port = 119startListener cs @ ClientSession {..} port =
123 startService peerListener port $ listener cs $ \conn @ (sock, PeerSession{..}) -> do 120 startService peerListener port $ listener cs $ \conn @ (_, PeerSession{..}) -> do
124 print "accepted"
125 let storage = error "storage"
126 runP2P conn p2p 121 runP2P conn p2p
127 122
128-- | Create a new client session. The data passed to this function are 123-- | Create a new client session. The data passed to this function are