Safe Haskell | None |
---|---|
Language | Haskell98 |
Reading from the process.
- run :: (MonadIO m, MonadBaseControl IO m) => Conduit Chunk (ShellT m) Chunk -> m ()
- shell :: MonadResource m => String -> Conduit Chunk m Chunk
- proc :: MonadResource m => String -> [String] -> Conduit Chunk m Chunk
- bytes :: Monad m => Conduit Chunk m ByteString
- unbytes :: Monad m => Conduit ByteString m Chunk
- withRights :: Monad m => Conduit ByteString m ByteString -> Conduit Chunk m Chunk
- redirect :: Monad m => ChunkType -> Conduit Chunk m Chunk
- quiet :: (Monad m, MonadIO m) => Conduit Chunk m Chunk -> Conduit Chunk m Chunk
- writeChunks :: MonadIO m => Consumer Chunk m ()
- discardChunks :: MonadIO m => Consumer Chunk m ()
- conduitProcess :: MonadResource m => CreateProcess -> Conduit Chunk m Chunk
Running scripts
run :: (MonadIO m, MonadBaseControl IO m) => Conduit Chunk (ShellT m) Chunk -> m () Source
Run a shell scripting conduit.
Running processes
I/O chunks
bytes :: Monad m => Conduit Chunk m ByteString Source
Extract the stdout values from the stream, discarding any errors.
unbytes :: Monad m => Conduit ByteString m Chunk Source
Extract the stdout values from the stream, discarding any errors.
withRights :: Monad m => Conduit ByteString m ByteString -> Conduit Chunk m Chunk Source
Do something with just the rights.
redirect :: Monad m => ChunkType -> Conduit Chunk m Chunk Source
Redirect the given chunk type to the other type.
quiet :: (Monad m, MonadIO m) => Conduit Chunk m Chunk -> Conduit Chunk m Chunk Source
Discard any output from the command: make it quiet.
writeChunks :: MonadIO m => Consumer Chunk m () Source
Write chunks to stdout and stderr.
discardChunks :: MonadIO m => Consumer Chunk m () Source
Discard all chunks.
Low-level internals
conduitProcess :: MonadResource m => CreateProcess -> Conduit Chunk m Chunk Source
Conduit of process.