Merge pull request #1068 from cocreature/monadmask
Add MonadMask instance for Handler
This commit is contained in:
commit
56d95ae1ea
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ import Prelude.Compat
|
||||||
import Control.Monad.Base
|
import Control.Monad.Base
|
||||||
(MonadBase (..))
|
(MonadBase (..))
|
||||||
import Control.Monad.Catch
|
import Control.Monad.Catch
|
||||||
(MonadCatch, MonadThrow)
|
(MonadCatch, MonadMask, MonadThrow)
|
||||||
import Control.Monad.Error.Class
|
import Control.Monad.Error.Class
|
||||||
(MonadError)
|
(MonadError)
|
||||||
import Control.Monad.IO.Class
|
import Control.Monad.IO.Class
|
||||||
|
@ -29,7 +29,7 @@ newtype Handler a = Handler { runHandler' :: ExceptT ServantErr IO a }
|
||||||
deriving
|
deriving
|
||||||
( Functor, Applicative, Monad, MonadIO, Generic
|
( Functor, Applicative, Monad, MonadIO, Generic
|
||||||
, MonadError ServantErr
|
, MonadError ServantErr
|
||||||
, MonadThrow, MonadCatch
|
, MonadThrow, MonadCatch, MonadMask
|
||||||
)
|
)
|
||||||
|
|
||||||
instance MonadBase IO Handler where
|
instance MonadBase IO Handler where
|
||||||
|
|
Loading…
Reference in a new issue