iteratee alternatives to MonadCatchIO
Bas van Dijk
v.dijk.bas at gmail.com
Thu Feb 10 18:43:55 GMT 2011
BTW note that monad-peel/control does not only give you exception
handling capabilities. It also allows you to lift any "control
operation" into your monad. Lifting IO control operations for example,
is easily accomplished using liftIOOp:
liftIOOp alloca $ \ptr -> ...
Also note that you can both support MonadCatchIO and
monad-peel/control at the same time. Simply write an instance for both
and give users a choice what to use.
More information about the Iteratee