Moduleprocess-extras-0.7.4Haskell2010
System.Process.Run
Flexible control of progress reporting for readCreateProcess and friends.
- 3 types
- 1 class
- 14 values
- Packageprocess-extras-0.7.4
- Exports18
- LanguageHaskell2010
- LicenceMIT
- SourceRun.hs
Monad transformer
4 declarationsThis is the state record that controls the output style.
Constructors
RunState_output :: OutputStyleOverall style of output
_outprefix :: textPrefix for lines of stdout
_errprefix :: textPrefix for lines of stderr
_echoStart :: BoolEcho command as process starts
_echoEnd :: BoolEcho command as process finishes
_verbosity :: IntA progression of progress modes
_lazy :: BoolUse the lazy or strict runner?
_message :: textExtra text for start/end message - e.g. the change root
Instances1Default
ProcessText text char => Default (RunState text)Defined in process-extras-0.7.4 · System.Process.Run
Monad class
1 declarationclass (MonadState (RunState text) m, ProcessText text char, ListLikeProcessIO text char, MonadIO m, IsString text, Eq char, Dot char) => RunM text char (m :: Type -> Type)Instances5RunM
(MonadIO m, MonadState (RunState ByteString) m) => RunM ByteString Word8 mDefined in process-extras-0.7.4 · System.Process.Run(MonadIO m, MonadState (RunState ByteString) m) => RunM ByteString Word8 mDefined in process-extras-0.7.4 · System.Process.Run(MonadIO m, MonadState (RunState String) m) => RunM String Char mDefined in process-extras-0.7.4 · System.Process.Run(MonadIO m, MonadState (RunState Text) m) => RunM Text Char mDefined in process-extras-0.7.4 · System.Process.Run(MonadIO m, MonadState (RunState Text) m) => RunM Text Char mDefined in process-extras-0.7.4 · System.Process.Run
Modify moand RunM state parameters
12 declarationsModify the indentation prefixes for stdout and stderr in the progress monad.
Set verbosity to a specific level from 0 to 3. vlevel :: (MonadIO m, Monoid text, MonadState (RunState text) m) => Int -> m () vlevel :: forall m text char. (IsString text, ListLike text char, MonadIO m) => Int -> m ()
Monadic process runner
1 declarationRe-exports
0 declarationsmodule System.Process.ListLike