Cabal-3.11.0.0: A framework for packaging Haskell software
Safe HaskellNone
LanguageHaskell2010

Distribution.Utils.LogProgress

Synopsis

Documentation

data LogProgress a Source #

The Progress monad with specialized logging and error messages.

Instances

Instances details
Applicative LogProgress Source # 
Instance details

Defined in Distribution.Utils.LogProgress

Methods

pure :: a -> LogProgress a #

(<*>) :: LogProgress (a -> b) -> LogProgress a -> LogProgress b #

liftA2 :: (a -> b -> c) -> LogProgress a -> LogProgress b -> LogProgress c #

(*>) :: LogProgress a -> LogProgress b -> LogProgress b #

(<*) :: LogProgress a -> LogProgress b -> LogProgress a #

Functor LogProgress Source # 
Instance details

Defined in Distribution.Utils.LogProgress

Methods

fmap :: (a -> b) -> LogProgress a -> LogProgress b #

(<$) :: a -> LogProgress b -> LogProgress a #

Monad LogProgress Source # 
Instance details

Defined in Distribution.Utils.LogProgress

Methods

(>>=) :: LogProgress a -> (a -> LogProgress b) -> LogProgress b #

(>>) :: LogProgress a -> LogProgress b -> LogProgress b #

return :: a -> LogProgress a #

runLogProgress :: Verbosity -> LogProgress a -> IO a Source #

Run LogProgress, outputting traces according to Verbosity, die if there is an error.

warnProgress :: Doc -> LogProgress () Source #

Output a warning trace message in LogProgress.

infoProgress :: Doc -> LogProgress () Source #

Output an informational trace message in LogProgress.

dieProgress :: Doc -> LogProgress a Source #

Fail the computation with an error message.

addProgressCtx :: CtxMsg -> LogProgress a -> LogProgress a Source #

Add a message to the error/warning context.