You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made the packages writer-cps-mtl and writer-transformers-mtl which implement a stricter writer monad transformer in continuation passing style as was discussed before on the Haskell mailing list etc
Would you be interested in including this into mtl? If not it can also exist as a separate package, but I guess it would be nice to have a well-behaving writer around in the standard toolbox.
Daniel
Reacted by Brian Schroeder, YAMAMOTO Yuji, Alice McKean, Vladislav Zavialov and Ian Jeffries
Assuming that these provide the same interface as the other State/Writer data types (which appears to be the case from a cursory glance, although I have not looked deeply), I'd happily accept a patch which adds MonadState/MonadWriter instances for these.
Activity
int-index commentedon Apr 27, 2017
@minad Thank you for
writer-cps-*packages, I'll incorporate them into the next release ofetheras the default implementation forWriter.minad commentedon Nov 23, 2018
It seems transformers pulled writer-cps-transformers, see https://hub.darcs.net/ross/transformers/patch/b6743fad9f5ce8a9e13f15320f7d2752330084e2
RyanGlScott commentedon Nov 23, 2018
Assuming that these provide the same interface as the other
State/Writerdata types (which appears to be the case from a cursory glance, although I have not looked deeply), I'd happily accept a patch which addsMonadState/MonadWriterinstances for these.minad commentedon Nov 23, 2018
As soon as the new transformers is released, you can pull the code from http://hackage.haskell.org/package/writer-cps-mtl. I can also prepare a patch. The same applies to the other writer-cps-* packages, providing orphan instances for exceptions, lens and mmorph.
RyanGlScott commentedon Aug 29, 2019
I believe #67 implements this on
mtl's side, so closing. Please re-open if you disagree.