Moduleerrors-2.3.0Haskell98
Control.Error.Util
This module exports miscellaneous error-handling functions.
Synopsis
- value hush
- value hushT
- value note
- value noteT
- value hoistMaybe
- value hoistEither
- value ??
- value !?
- value failWith
- value failWithM
- value bool
- value ?:
- value maybeT
- value just
- value nothing
- value isJustT
- value isNothingT
- value isLeft
- value isRight
- value fmapR
- newtype AllE
- newtype AnyE
- value isLeftT
- value isRightT
- value fmapRT
- value exceptT
- value bimapExceptT
- value err
- value errLn
- value tryIO
- value handleExceptT
- value syncIO
- Packageerrors-2.3.0
- Exports32
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceUtil.hs
Conversion
Bool
Case analysis for the Bool type.
bool a b c == if c then b else aMaybe
An infix form of fromMaybe with arguments flipped.
MaybeT
Analogous to Nothing and equivalent to mzero
Either
Returns whether argument is a Left
Returns whether argument is a Right
ExceptT
Fold an ExceptT by providing one continuation for each constructor
Transform the left and right value
Error Reporting
Write a string to standard error
Write a string with a newline to standard error
Exceptions
Catch 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