error-context-0.2.0.1: Provides API for enriching errors with contexts

Copyright(c) Moritz Clasmeier 2018
LicenseBSD3
Maintainermtesseract@silverratio.net
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Control.Error.Context.Katip

Description

Provides an API for enriching errors with contexts.

Synopsis

Documentation

newtype ErrorContextKatipT m a Source #

Data type implementing MonadErrorContext.

Constructors

ErrorContextKatipT 

Fields

Instances

MonadTrans ErrorContextKatipT Source # 

Methods

lift :: Monad m => m a -> ErrorContextKatipT m a #

MonadWriter w m => MonadWriter w (ErrorContextKatipT m) Source # 

Methods

writer :: (a, w) -> ErrorContextKatipT m a #

tell :: w -> ErrorContextKatipT m () #

listen :: ErrorContextKatipT m a -> ErrorContextKatipT m (a, w) #

pass :: ErrorContextKatipT m (a, w -> w) -> ErrorContextKatipT m a #

MonadState s m => MonadState s (ErrorContextKatipT m) Source # 

Methods

get :: ErrorContextKatipT m s #

put :: s -> ErrorContextKatipT m () #

state :: (s -> (a, s)) -> ErrorContextKatipT m a #

MonadReader r m => MonadReader r (ErrorContextKatipT m) Source # 

Methods

ask :: ErrorContextKatipT m r #

local :: (r -> r) -> ErrorContextKatipT m a -> ErrorContextKatipT m a #

reader :: (r -> a) -> ErrorContextKatipT m a #

Monad m => Monad (ErrorContextKatipT m) Source # 
Functor m => Functor (ErrorContextKatipT m) Source # 

Methods

fmap :: (a -> b) -> ErrorContextKatipT m a -> ErrorContextKatipT m b #

(<$) :: a -> ErrorContextKatipT m b -> ErrorContextKatipT m a #

Applicative m => Applicative (ErrorContextKatipT m) Source # 
(KatipContext m, MonadCatch m, MonadIO m) => MonadIO (ErrorContextKatipT m) Source # 

Methods

liftIO :: IO a -> ErrorContextKatipT m a #

(KatipContext m, MonadCatch m, MonadResource m) => MonadResource (ErrorContextKatipT m) Source # 
(KatipContext m, MonadCatch m) => MonadThrow (ErrorContextKatipT m) Source # 

Methods

throwM :: Exception e => e -> ErrorContextKatipT m a #

(KatipContext m, MonadCatch m) => MonadCatch (ErrorContextKatipT m) Source # 
(MonadCatch m, KatipContext m) => KatipContext (ErrorContextKatipT m) Source # 
(MonadCatch m, KatipContext m, MonadIO m, Katip m) => Katip (ErrorContextKatipT m) Source # 
(MonadCatch m, KatipContext m) => MonadErrorContext (ErrorContextKatipT m) Source #