[Haskell-cafe] Absolutely confused with error/exception handling
saurabhnanda at gmail.com
Fri Dec 16 07:30:31 UTC 2016
> Use liftIO for that; that's what MonadIO is for. I expected you were
> needing to go the other way, because if you have MonadIO then you have IO
> via liftIO.
The type signature for catch is --
catch :: Exception e => IO a -> (e -> IO a) -> IO a
This is Spock's monad:
(it has MonadTrans, MonadIO, Monad, Functor, Applicative, Alternative
How do I catch an exception coming out of an action in the ActionCtxT monad?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe