mtl icon indicating copy to clipboard operation
mtl copied to clipboard

More general MonadAccum instance missing

Open turion opened this issue 8 months ago • 1 comments

There is an instance Monoid w => MonadAccum w (AccumT w Identity):

https://github.com/haskell/mtl/blob/6be8cb55ca9a8bfa6111e3004e4b56b91ed5edcc/Control/Monad/Accum.hs#L163

But a more general instance that should exist would be:

instance (Monoid w, Monad m) => MonadAccum w (AccumT w m)`

turion avatar Jun 07 '24 11:06 turion