Merge pull request #1068 from cocreature/monadmask

Add MonadMask instance for Handler
This commit is contained in:
Alp Mestanogullari 2018-11-06 07:36:41 +01:00 committed by GitHub
commit 56d95ae1ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ import Prelude.Compat
import Control.Monad.Base
(MonadBase (..))
import Control.Monad.Catch
(MonadCatch, MonadThrow)
(MonadCatch, MonadMask, MonadThrow)
import Control.Monad.Error.Class
(MonadError)
import Control.Monad.IO.Class
@ -29,7 +29,7 @@ newtype Handler a = Handler { runHandler' :: ExceptT ServantErr IO a }
deriving
( Functor, Applicative, Monad, MonadIO, Generic
, MonadError ServantErr
, MonadThrow, MonadCatch
, MonadThrow, MonadCatch, MonadMask
)
instance MonadBase IO Handler where