Moduleerrors-2.3.0Haskell98
Control.Error.Util
This module exports miscellaneous error-handling functions.
- 2 types
- 30 values
- Packageerrors-2.3.0
- Exports32
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceUtil.hs
Conversion
10 declarationsBool
1 declarationCase analysis for the Bool type.
bool a b c == if c then b else aMaybe
1 declarationAn infix form of fromMaybe with arguments flipped.
MaybeT
5 declarationsAnalogous to Nothing and equivalent to mzero
Either
5 declarationsReturns whether argument is a Left
Returns whether argument is a Right
ExceptT
5 declarationsFold an ExceptT by providing one continuation for each constructor
Transform the left and right value
Error Reporting
2 declarationsWrite a string to standard error
Write a string with a newline to standard error
Exceptions
3 declarationsCatch IOExceptions and convert them to the ExceptT monad
Run a monad action which may throw an exception in the ExceptT monad
Catch all exceptions, except for asynchronous exceptions found in base
and convert them to the ExceptT monad