diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-07-16 20:40:05 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-07-16 20:40:05 +0400 |
commit | bc1c976e9175b4ac13430ba9c23ea8b099401e9e (patch) | |
tree | 67a0d7064d1c0f843e8efbdaa1e2b32e35f1955b /src/Network/BitTorrent/Sessions.hs | |
parent | 412919e88e1d60303f7a14134e37f27becf5f959 (diff) |
~ Fix some long standing warnings.
Diffstat (limited to 'src/Network/BitTorrent/Sessions.hs')
-rw-r--r-- | src/Network/BitTorrent/Sessions.hs | 9 |
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 | |||
51 | import Control.Concurrent | 51 | import Control.Concurrent |
52 | import Control.Concurrent.STM | 52 | import Control.Concurrent.STM |
53 | import Control.Concurrent.MSem as MSem | 53 | import Control.Concurrent.MSem as MSem |
54 | import Control.Monad (when, forever, (>=>)) | 54 | import Control.Monad (forever, (>=>)) |
55 | import Control.Exception | 55 | import Control.Exception |
56 | import Control.Monad.Trans | 56 | import Control.Monad.Trans |
57 | 57 | ||
@@ -61,12 +61,9 @@ import Data.HashMap.Strict as HM | |||
61 | import Data.Foldable as F | 61 | import Data.Foldable as F |
62 | import Data.Set as S | 62 | import Data.Set as S |
63 | 63 | ||
64 | import Data.Serialize hiding (get) | ||
65 | |||
66 | import Network hiding (accept) | 64 | import Network hiding (accept) |
67 | import Network.BSD | 65 | import Network.BSD |
68 | import Network.Socket | 66 | import Network.Socket |
69 | import Network.Socket.ByteString | ||
70 | 67 | ||
71 | import Data.Bitfield as BF | 68 | import Data.Bitfield as BF |
72 | import Data.Torrent | 69 | import Data.Torrent |
@@ -120,9 +117,7 @@ torrentPresence ClientSession {..} ih = do | |||
120 | 117 | ||
121 | startListener :: ClientSession -> PortNumber -> IO () | 118 | startListener :: ClientSession -> PortNumber -> IO () |
122 | startListener cs @ ClientSession {..} port = | 119 | startListener 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 |