Skip to content

Commit

Permalink
Derive MonadMask for ClientM (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy authored Mar 26, 2022
1 parent 65de6f7 commit 658585a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servant-client/src/Servant/Client/Internal/HttpClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Control.Monad
import Control.Monad.Base
(MonadBase (..))
import Control.Monad.Catch
(MonadCatch, MonadThrow)
(MonadCatch, MonadThrow, MonadMask)
import Control.Monad.Error.Class
(MonadError (..))
import Control.Monad.IO.Class
Expand Down Expand Up @@ -136,7 +136,7 @@ newtype ClientM a = ClientM
{ unClientM :: ReaderT ClientEnv (ExceptT ClientError IO) a }
deriving ( Functor, Applicative, Monad, MonadIO, Generic
, MonadReader ClientEnv, MonadError ClientError, MonadThrow
, MonadCatch)
, MonadCatch, MonadMask)

instance MonadBase IO ClientM where
liftBase = ClientM . liftBase
Expand Down

0 comments on commit 658585a

Please sign in to comment.