Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LogProgress a
- runLogProgress :: Verbosity -> LogProgress a -> NoCallStackIO a
- warnProgress :: Doc -> LogProgress ()
- infoProgress :: Doc -> LogProgress ()
- dieProgress :: Doc -> LogProgress a
- addProgressCtx :: CtxMsg -> LogProgress a -> LogProgress a
Documentation
data LogProgress a #
The Progress
monad with specialized logging and
error messages.
Instances
Monad LogProgress # | |
Defined in Distribution.Utils.LogProgress (>>=) :: LogProgress a -> (a -> LogProgress b) -> LogProgress b # (>>) :: LogProgress a -> LogProgress b -> LogProgress b # return :: a -> LogProgress a # fail :: String -> LogProgress a # | |
Functor LogProgress # | |
Defined in Distribution.Utils.LogProgress fmap :: (a -> b) -> LogProgress a -> LogProgress b # (<$) :: a -> LogProgress b -> LogProgress a # | |
Applicative LogProgress # | |
Defined in Distribution.Utils.LogProgress 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 # |
runLogProgress :: Verbosity -> LogProgress a -> NoCallStackIO a #
Run LogProgress
, outputting traces according to Verbosity
,
die
if there is an error.
warnProgress :: Doc -> LogProgress () #
Output a warning trace message in LogProgress
.
infoProgress :: Doc -> LogProgress () #
Output an informational trace message in LogProgress
.
dieProgress :: Doc -> LogProgress a #
Fail the computation with an error message.
addProgressCtx :: CtxMsg -> LogProgress a -> LogProgress a #
Add a message to the error/warning context.