r/purescript • u/paf31 • Aug 31 '14
PureScript Book, Chapter 11 - "Monadic Adventures"
https://leanpub.com/purescript/read?11#leanpub-auto-monadic-adventures
7
Upvotes
r/purescript • u/paf31 • Aug 31 '14
View all comments
Show parent comment
1
u/paf31 Aug 31 '14
They offer different benefits. There are things extensible effects can't express and vice versa.
Effis good for interleaving native JavaScript effects, like exceptions and mutable state, but it can't express things likeContT. The default interleaving of state and exceptions does not roll back the state after an exception, likeStateT Eitherfor example.