Skip to content

Commit c21c548

Browse files
committed
Generalize MonadAccum w (AccumT w m).
There is no reason to restrict this instance any further.
1 parent 33c8fc2 commit c21c548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Control/Monad/Accum.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class (Monoid w, Monad m) => MonadAccum w m | m -> w where
160160
{-# MINIMAL accum | look, add #-}
161161

162162
-- | @since 2.3
163-
instance (Monoid w) => MonadAccum w (AccumT w Identity) where
163+
instance (Monoid w, Monad m) => MonadAccum w (AccumT w m) where
164164
look = Accum.look
165165
add = Accum.add
166166
accum = Accum.accum

0 commit comments

Comments
 (0)