Skip to content

Add instances for Writer.CPS and RWS.CPS#51

Open
sheaf wants to merge 1 commit into
basvandijk:masterfrom
sheaf:writer-cps
Open

Add instances for Writer.CPS and RWS.CPS#51
sheaf wants to merge 1 commit into
basvandijk:masterfrom
sheaf:writer-cps

Conversation

@sheaf

@sheaf sheaf commented Feb 20, 2020

Copy link
Copy Markdown

Adds MonadBaseControl and MonadTransControl instances for the CPS versions of Writer and RWS that were added in transformers-0.5.6.

Relies on the corresponding instances for MonadBase provided here.

@phadej

phadej commented May 18, 2026

Copy link
Copy Markdown
Collaborator

I don't think these are right. CPS variants don't really support control. What you do, is you "run" the monad, and then lift it again, which is against spirit of CPS-versions.

It's possible to define those instances, but they are lies, like Foldable (or especially) Traversable for DList. I'd rather not.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants