summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-03-19 02:05:50 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-03-19 02:05:50 +0400
commit3613e02e454980bb208132922e852145b89705c4 (patch)
treec72b9c7cda16478cc3a40b3d4965388819d9f5c1 /src/Network/BitTorrent
parent5fe6798c10f66d987af68ee6287dc9fe251b9f5d (diff)
Add bittorrent instance for transformers
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r--src/Network/BitTorrent/Client/Types.hs4
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 #-}
2module Network.BitTorrent.Client.Types 3module Network.BitTorrent.Client.Types
3 ( -- * Core types 4 ( -- * Core types
@@ -82,6 +83,9 @@ class MonadBitTorrent m where
82instance MonadBitTorrent BitTorrent where 83instance MonadBitTorrent BitTorrent where
83 liftBT = id 84 liftBT = id
84 85
86instance 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'
87instance MonadResource BitTorrent where 91instance MonadResource BitTorrent where