diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/BitTorrent/Client/Types.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Session.hs | 3 | ||||
-rw-r--r-- | src/Network/BitTorrent/Exchange/Connection.hs | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Client/Types.hs b/src/Network/BitTorrent/Client/Types.hs index a5bf0cce..9bae7dc3 100644 --- a/src/Network/BitTorrent/Client/Types.hs +++ b/src/Network/BitTorrent/Client/Types.hs | |||
@@ -100,7 +100,7 @@ externalAddr Client {..} = PeerAddr | |||
100 | newtype BitTorrent a = BitTorrent | 100 | newtype BitTorrent a = BitTorrent |
101 | { unBitTorrent :: ReaderT Client IO a | 101 | { unBitTorrent :: ReaderT Client IO a |
102 | } deriving ( Functor, Applicative, Monad | 102 | } deriving ( Functor, Applicative, Monad |
103 | , MonadIO, MonadThrow, MonadUnsafeIO, MonadBase IO | 103 | , MonadIO, MonadThrow, MonadBase IO |
104 | ) | 104 | ) |
105 | 105 | ||
106 | class MonadBitTorrent m where | 106 | class MonadBitTorrent m where |
diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs index 0dd4b862..eab25ebb 100644 --- a/src/Network/BitTorrent/DHT/Session.hs +++ b/src/Network/BitTorrent/DHT/Session.hs | |||
@@ -75,6 +75,7 @@ import Control.Monad.Logger | |||
75 | import Control.Monad.Reader | 75 | import Control.Monad.Reader |
76 | import Control.Monad.Trans.Control | 76 | import Control.Monad.Trans.Control |
77 | import Control.Monad.Trans.Resource | 77 | import Control.Monad.Trans.Resource |
78 | import Data.Conduit.Lazy | ||
78 | import Data.Default | 79 | import Data.Default |
79 | import Data.Fixed | 80 | import Data.Fixed |
80 | import Data.Hashable | 81 | import Data.Hashable |
@@ -256,7 +257,7 @@ newtype DHT ip a = DHT { unDHT :: ReaderT (Node ip) IO a } | |||
256 | deriving ( Functor, Applicative, Monad | 257 | deriving ( Functor, Applicative, Monad |
257 | , MonadIO, MonadBase IO | 258 | , MonadIO, MonadBase IO |
258 | , MonadReader (Node ip) | 259 | , MonadReader (Node ip) |
259 | , MonadThrow, MonadUnsafeIO | 260 | , MonadThrow |
260 | ) | 261 | ) |
261 | 262 | ||
262 | instance MonadBaseControl IO (DHT ip) where | 263 | instance MonadBaseControl IO (DHT ip) where |
diff --git a/src/Network/BitTorrent/Exchange/Connection.hs b/src/Network/BitTorrent/Exchange/Connection.hs index f208fa54..2d5f39bf 100644 --- a/src/Network/BitTorrent/Exchange/Connection.hs +++ b/src/Network/BitTorrent/Exchange/Connection.hs | |||
@@ -112,6 +112,7 @@ import Control.Concurrent hiding (yield) | |||
112 | import Control.Exception | 112 | import Control.Exception |
113 | import Control.Monad.Reader | 113 | import Control.Monad.Reader |
114 | import Control.Monad.State | 114 | import Control.Monad.State |
115 | import Control.Monad.Trans.Resource | ||
115 | import Control.Lens | 116 | import Control.Lens |
116 | import Data.ByteString as BS | 117 | import Data.ByteString as BS |
117 | import Data.ByteString.Lazy as BSL | 118 | import Data.ByteString.Lazy as BSL |