Free monad using classy prisms.
https://gist.github.com/tonymorris/935e19c091c04f33cdc5b2daf05cfdd9 …
/cc @tpolecat
I use MonadError (misnamed MonadEither) in the error case. This just isn't that case.
-
-
Actually, I agree with this. But I don't know how many other gotchas there are beyond Cont/Error.
-
I like how
@kmett caught me off guard when I asked him what he thought about "extensible effects," and he replied "they don't exist." - Show replies
New conversation -
-
-
"misnamed MonadEither" I thought the name was to generalize branching
-
If MonadEither came to exist, it would be the same structure as MonadError.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.