Skip to content

Commit

Permalink
instance MonadRWS r w s m => MonadRWS r w s (ExceptT e m)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed May 5, 2014
1 parent f61c3d5 commit 89e4465
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Control/Monad/RWS/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import Control.Monad.Writer.Class

import Control.Monad.Trans.Class
import Control.Monad.Trans.Error(Error, ErrorT)
import Control.Monad.Trans.Except(ExceptT)
import Control.Monad.Trans.Maybe(MaybeT)
import Control.Monad.Trans.Identity(IdentityT)
import Control.Monad.Trans.RWS.Lazy as Lazy (RWST)
Expand All @@ -53,6 +54,7 @@ instance (Monoid w, Monad m) => MonadRWS r w s (Strict.RWST r w s m)
-- All of these instances need UndecidableInstances,
-- because they do not satisfy the coverage condition.

instance MonadRWS r w s m => MonadRWS r w s (ExceptT e m)
instance (Error e, MonadRWS r w s m) => MonadRWS r w s (ErrorT e m)
instance MonadRWS r w s m => MonadRWS r w s (IdentityT m)
instance MonadRWS r w s m => MonadRWS r w s (MaybeT m)

0 comments on commit 89e4465

Please sign in to comment.