Skip to content

Commit 658585a

Browse files
authored
Derive MonadMask for ClientM (#1572)
1 parent 65de6f7 commit 658585a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servant-client/src/Servant/Client/Internal/HttpClient.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Control.Monad
2424
import Control.Monad.Base
2525
(MonadBase (..))
2626
import Control.Monad.Catch
27-
(MonadCatch, MonadThrow)
27+
(MonadCatch, MonadThrow, MonadMask)
2828
import Control.Monad.Error.Class
2929
(MonadError (..))
3030
import Control.Monad.IO.Class
@@ -136,7 +136,7 @@ newtype ClientM a = ClientM
136136
{ unClientM :: ReaderT ClientEnv (ExceptT ClientError IO) a }
137137
deriving ( Functor, Applicative, Monad, MonadIO, Generic
138138
, MonadReader ClientEnv, MonadError ClientError, MonadThrow
139-
, MonadCatch)
139+
, MonadCatch, MonadMask)
140140

141141
instance MonadBase IO ClientM where
142142
liftBase = ClientM . liftBase

0 commit comments

Comments
 (0)