Skip to content

Commit 86f3c5c

Browse files
committed
Merge pull request #48 from natefaubion/monad-rec-semigroup
Remove Semigroup constraint on monadRecErrorT
2 parents d0924e6 + 4a2f672 commit 86f3c5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Control/Monad/Error/Trans.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ instance bindErrorT :: (Monad m) => Bind (ErrorT e m) where
6161

6262
instance monadErrorT :: (Monad m) => Monad (ErrorT e m)
6363

64-
instance monadRecErrorT :: (Error e, MonadRec m) => MonadRec (ErrorT e m) where
64+
instance monadRecErrorT :: (MonadRec m) => MonadRec (ErrorT e m) where
6565
tailRecM f = ErrorT <<< tailRecM \a -> do
6666
m <- runErrorT (f a)
6767
return case m of

src/Control/Monad/Except/Trans.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ instance bindExceptT :: (Monad m) => Bind (ExceptT e m) where
5252

5353
instance monadExceptT :: (Monad m) => Monad (ExceptT e m)
5454

55-
instance monadRecErrorT :: (Semigroup e, MonadRec m) => MonadRec (ExceptT e m) where
55+
instance monadRecExceptT :: (MonadRec m) => MonadRec (ExceptT e m) where
5656
tailRecM f = ExceptT <<< tailRecM \a -> do
5757
m <- runExceptT (f a)
5858
return case m of

0 commit comments

Comments
 (0)