Agda-2.2.10: A dependently typed functional programming language and proof assistant

Agda.TypeChecking.Monad.Exception

Description

Basically a copy of the ErrorT monad transformer. It's handy to slap onto TCM and still be a MonadTCM (which isn't possible with ErrorT).

Documentation

newtype ExceptionT err m a Source

Constructors

ExceptionT 

Fields

runExceptionT :: m (Either err a)
 

class Error err => MonadException err m | m -> err whereSource

Methods

throwException :: err -> m aSource

catchException :: m a -> (err -> m a) -> m aSource