Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadProgress m where
- runProgressActions :: String -> [ProgressAction m ()] -> m ()
- data ProgressAction m a = ProgressAction {}
- silentlyRunProgressActions :: Monad m => String -> [ProgressAction m ()] -> m ()
Documentation
class Monad m => MonadProgress m where Source #
runProgressActions :: String -> [ProgressAction m ()] -> m () Source #
run a list of ProgressAction
s. In some monads (typically IO-based ones),
the progress and error messages will be used. In others they will be
ignored and just the actions will be run.
Instances
MonadProgress DefaultIO Source # | |
Defined in Darcs.Repository.ApplyPatches runProgressActions :: String -> [ProgressAction DefaultIO ()] -> DefaultIO () Source # | |
Monad m => MonadProgress (TreeMonad m) Source # | |
Defined in Darcs.Patch.MonadProgress runProgressActions :: String -> [ProgressAction (TreeMonad m) ()] -> TreeMonad m () Source # |
data ProgressAction m a Source #
a monadic action, annotated with a progress message that could be printed out while running the action, and a message that could be printed out on error. Actually printing out these messages is optional to allow non-IO monads to just run the action.
silentlyRunProgressActions :: Monad m => String -> [ProgressAction m ()] -> m () Source #
run a list of ProgressAction
s without any feedback messages