Skip to content

Stricter Writer #38

Closed
Closed

Description

@minad

Hi,

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

See also the current reddit discussion:
https://www.reddit.com/r/haskell/comments/50hf2s/stricter_writert_and_rwst_replacements/

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

Activity

  1. int-index commented on Apr 27, 2017

    @int-index

    @minad Thank you for writer-cps-* packages, I'll incorporate them into the next release of ether as the default implementation for Writer.

  2. RyanGlScott commented on Nov 23, 2018

    @RyanGlScott
    Member

    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.

  3. minad commented on Nov 23, 2018

    @minad
    Author

    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.

  4. RyanGlScott commented on Aug 29, 2019

    @RyanGlScott
    Member

    I believe #67 implements this on mtl's side, so closing. Please re-open if you disagree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions