ether-0.1.0.1: Monad transformers and classes

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Ether.Implicit.Except.TH

Description

Template Haskell utilities for exception handling.

Synopsis

Documentation

try' :: Functor m => ExceptT e m a -> (e -> a) -> m a Source

Basic building block for try. Runs an ExceptT with a handler.

try :: Int -> ExpQ Source

Handle n exceptions with supplied handlers.

$(try 3) monadicComputation
   (\Exception1 -> ...)
   (\Exception2 -> ...)
   (\Exception3 -> ...)