Free monad using classy prisms.
https://gist.github.com/tonymorris/935e19c091c04f33cdc5b2daf05cfdd9 …
/cc @tpolecat
-
-
If your effects indeed compose the way you want, then by all means Eff or Free away.
-
I use MonadError (misnamed MonadEither) in the error case. This just isn't that case.
- 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.