You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither of these monads is particularly suitable for throwing exceptions. The only possibility is to use fail, but neither the Reader monad nor the (lazy) State monad is strict enough so that in
foo =dofail"The query will continue perfectly fine after this fail"
restOfQuery
does what one would expect (restOfQuery gets executed). Ideally, there would be explicit support for exceptions (ErrorT, perhaps), with the expected strictness properties.
The text was updated successfully, but these errors were encountered:
At the moment
acid-state
usesNeither of these monads is particularly suitable for throwing exceptions. The only possibility is to use
fail
, but neither theReader
monad nor the (lazy)State
monad is strict enough so that indoes what one would expect (
restOfQuery
gets executed). Ideally, there would be explicit support for exceptions (ErrorT
, perhaps), with the expected strictness properties.The text was updated successfully, but these errors were encountered: