ron-0.11: RON

Safe HaskellNone
LanguageHaskell2010

RON.Error

Synopsis

Documentation

data Error Source #

Constructors

Error Text [Error] 
Instances
Eq Error Source # 
Instance details

Defined in RON.Error

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in RON.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

IsString Error Source # 
Instance details

Defined in RON.Error

Methods

fromString :: String -> Error #

Exception Error Source # 
Instance details

Defined in RON.Error

correct :: MonadError e m => a -> m a -> m a Source #

errorContext :: MonadE m => Text -> m a -> m a Source #

liftEither :: MonadError e m => Either e a -> m a #

Lifts an Either e into any MonadError e.

do { val <- liftEither =<< action1; action2 }

where action1 returns an Either to represent errors.

Since: mtl-2.2.2

liftMaybe :: MonadE m => Text -> Maybe a -> m a Source #