Skip to content

Commit b1e36c4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Control/Monad/Accum.hs

+1-1
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)