[Haskell-cafe] MonadThrow and Either instance

Viktor Dukhovni ietf-dane at dukhovni.org
Fri Feb 7 10:27:08 UTC 2020


> On Feb 7, 2020, at 1:19 AM, PICCA Frederic-Emmanuel <frederic-emmanuel.picca at synchrotron-soleil.fr> wrote:
> 
> I did not know about  runCatch.
> I should try these kind of runXXX on hoogle.


FWIW, I did not find it on Hoogle.  Rather I looked at the
documentation of MonadCatch, noting the only instance that
wrapped a generic Monad that didn't already have MonadCatch
was 'CatchT m a'.

That led naturally to 'Catch = CatchT identity' and
'runCatch'.

Finding it through ad-hoc searches would have been much
harder...

-- 
	Viktor.



More information about the Haskell-Cafe mailing list