Derive MonadMask for ClientM (#1572)
This commit is contained in:
parent
65de6f701c
commit
658585a7cd
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ import Control.Monad
|
||||||
import Control.Monad.Base
|
import Control.Monad.Base
|
||||||
(MonadBase (..))
|
(MonadBase (..))
|
||||||
import Control.Monad.Catch
|
import Control.Monad.Catch
|
||||||
(MonadCatch, MonadThrow)
|
(MonadCatch, MonadThrow, MonadMask)
|
||||||
import Control.Monad.Error.Class
|
import Control.Monad.Error.Class
|
||||||
(MonadError (..))
|
(MonadError (..))
|
||||||
import Control.Monad.IO.Class
|
import Control.Monad.IO.Class
|
||||||
|
@ -136,7 +136,7 @@ newtype ClientM a = ClientM
|
||||||
{ unClientM :: ReaderT ClientEnv (ExceptT ClientError IO) a }
|
{ unClientM :: ReaderT ClientEnv (ExceptT ClientError IO) a }
|
||||||
deriving ( Functor, Applicative, Monad, MonadIO, Generic
|
deriving ( Functor, Applicative, Monad, MonadIO, Generic
|
||||||
, MonadReader ClientEnv, MonadError ClientError, MonadThrow
|
, MonadReader ClientEnv, MonadError ClientError, MonadThrow
|
||||||
, MonadCatch)
|
, MonadCatch, MonadMask)
|
||||||
|
|
||||||
instance MonadBase IO ClientM where
|
instance MonadBase IO ClientM where
|
||||||
liftBase = ClientM . liftBase
|
liftBase = ClientM . liftBase
|
||||||
|
|
Loading…
Reference in a new issue