Control.Monad.Except

Monads with error handling

class MonadError e m

The ErrorT monad transformer

data ExceptT e m a

type Except e

runExceptT

mapExceptT

withExceptT

runExcept

mapExcept

withExcept

Example 1: Custom Error Data Type

Example 2: Using ExceptT Monad Transformer