uhc-util-0.1.7.0: UHC utilities

Safe HaskellSafe
LanguageHaskell98

UHC.Util.Error

Description

Wrapper module around Control.Monad.Error, in order to be backwards compatible as far as UHC is concerned.

Synopsis

Documentation

class Error a where Source #

Copiedolddeprecated functionality from Control.Monad.Error.Class

Methods

noMsg :: a Source #

Creates an exception without a message. The default implementation is strMsg "".

strMsg :: String -> a Source #

Creates an exception with a message. The default implementation of strMsg s is noMsg.

runErrorT :: ExceptT e m a -> m (Either e a) Source #

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

mapErrorT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n b Source #

runError :: Except e a -> Either e a Source #

withError :: (e -> e') -> Except e a -> Except e' a Source #

mapError :: (Either e a -> Either e' b) -> Except e a -> Except e' b Source #