diff options
-rw-r--r-- | src/Network/BitTorrent/Client/Types.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Client/Types.hs b/src/Network/BitTorrent/Client/Types.hs index fa345e4b..e9f9f76e 100644 --- a/src/Network/BitTorrent/Client/Types.hs +++ b/src/Network/BitTorrent/Client/Types.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE FlexibleInstances #-} | ||
1 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | 2 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} |
2 | module Network.BitTorrent.Client.Types | 3 | module Network.BitTorrent.Client.Types |
3 | ( -- * Core types | 4 | ( -- * Core types |
@@ -82,6 +83,9 @@ class MonadBitTorrent m where | |||
82 | instance MonadBitTorrent BitTorrent where | 83 | instance MonadBitTorrent BitTorrent where |
83 | liftBT = id | 84 | liftBT = id |
84 | 85 | ||
86 | instance MonadTrans t => MonadBitTorrent (t BitTorrent) where | ||
87 | liftBT = lift | ||
88 | |||
85 | -- | Registered but not closed manually resources will be | 89 | -- | Registered but not closed manually resources will be |
86 | -- automatically closed at 'Network.BitTorrent.Client.closeClient' | 90 | -- automatically closed at 'Network.BitTorrent.Client.closeClient' |
87 | instance MonadResource BitTorrent where | 91 | instance MonadResource BitTorrent where |