Skip to content
Discussion options

You must be logged in to vote

OK, so how about the below?

Looks a bit messy with all the foralls

Yes, the newtype wrapping helps (see below), although it is a bit of a pain to have to do that. There are various ways to make that syntactically more lightweight, but I hope this at least shows that it's possible and the resulting API is convenient, even if the plumbing is messy.

For example in polysemy you can't write the interpreter for this effect for two separate reasons

Interesting! I will have to investigate further to understand why it's possible in effectful (unless it's easy for you to summarize the reason for me).

But doesn't effectful have a problem with that feature? For example, I think this causes undefi…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@arybczak
Comment options

@tomjaguarpaw
Comment options

@arybczak
Comment options

@tomjaguarpaw
Comment options

Answer selected by arybczak
@arybczak
Comment options

@tomjaguarpaw
Comment options

@tomjaguarpaw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants