process-progress-0.9: Run a process and do reportsing on its progress.

Safe HaskellNone

System.Process.Read.Convenience

Contents

Synopsis

Predicates

Filters

keepStdout :: ListLikePlus a c => [Output a] -> [a]Source

keepStderr :: ListLikePlus a c => [Output a] -> [a]Source

keepOutput :: ListLikePlus a c => [Output a] -> [a]Source

Transformers

mapMaybeStdout :: ListLikePlus a c => (a -> Maybe (Output a)) -> [Output a] -> [Output a]Source

mapMaybeStderr :: ListLikePlus a c => (a -> Maybe (Output a)) -> [Output a] -> [Output a]Source

Collectors

collectOutputs :: forall a c. ListLikePlus a c => [Output a] -> ([ExitCode], a, a, [IOError])Source

IO operations

ePutStr :: MonadIO m => String -> m ()Source

eMessage :: MonadIO m => String -> a -> m aSource

eMessageLn :: MonadIO m => String -> a -> m aSource

foldException :: ListLikePlus a c => (IOError -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldChars :: ListLikePlus a c => (a -> IO (Output a)) -> (a -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldStdout :: ListLikePlus a c => (a -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldStderr :: ListLikePlus a c => (a -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldResult :: ListLikePlus a c => (ExitCode -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldSuccess :: ListLikePlus a c => IO (Output a) -> [Output a] -> IO [Output a]Source

foldFailure :: ListLikePlus a c => (Int -> IO (Output a)) -> [Output a] -> IO [Output a]Source

foldFailure' :: ListLikePlus a c => (Int -> IO (Output a)) -> [Output a] -> IO [Output a]Source

doExit :: ListLikePlus a c => [Output a] -> IO [Output a]Source

I don't see much use for this.

doAll :: ListLikePlus a c => [Output a] -> IO [Output a]Source

dots :: forall a c. NonBlocking a c => LengthType a -> (LengthType a -> IO ()) -> [Output a] -> IO [Output a]Source

prefixed :: forall a c. (Enum c, ListLikePlus a c) => a -> a -> [Output a] -> IO [Output a]Source

Output the stream with a prefix added at the beginning of each line of stdout and stderr.