
On Mon, 15 Mar 2010, Bas van Dijk wrote:
But in addition we can advice the users of catchCGI to actually use the CatchIO.catch instead by adding a deprecated pragma like:
{-# DEPRECATED catchCGI "Use Control.Monad.CatchIO.catch instead." #-}
Or is this to rude?
I’d have no objection to that, if the maintainer agrees.
Something else: which MonadCatchIO package are you proposing to use: MonadCatchIO-mtl or MonadCatchIO-transformers? I guess the former because cgi depends on mtl.
Right, one change at a time. :-)
In that case we should contact the maintainer of MonadCatchIO-mtl and ask if he can add the following functions: bracket_, bracketOnError and finally (types and definitions below).
Sure, those would definitely be nice to have regardless. Anders