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

Safe HaskellNone

System.Process.Read.Convenience

Contents

Synopsis

Predicates

Filters

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

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

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

Transformers

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

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

Collectors

collectOutputs :: forall a c. ListLikePlus a c => [Chunk 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 (Chunk a)) -> [Chunk a] -> IO [Chunk a]Source

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

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

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

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

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

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

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

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

I don't see much use for this.

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

dots :: (ListLikePlus a c, c ~ Char) => Int -> [Chunk a] -> IO [Chunk a]Source

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

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