process-streaming-0.7.2.2: Streaming interface to system processes.

Safe HaskellNone
LanguageHaskell2010

System.Process.Streaming.Extended

Description

 

Synopsis

Documentation

data Piap e a Source

An alternative to Piping for defining what to do with the standard streams. Piap is an instance of Applicative, unlike Piping.

With Piap, the standard streams are always piped. The values of std_in, std_out and std_err in the CreateProcess record are ignored.

Instances

Bifunctor Piap 
Functor (Piap e) 
Applicative (Piap e)

pure creates a Piap that writes nothing to stdin and drains stdout and stderr, discarding the data.

<*> schedules the writes to stdin sequentially, and the reads from stdout and stderr concurrently.

piapi :: Pump ByteString e a -> Piap e a Source

Do stuff with stdin.

piapo :: Siphon ByteString e a -> Piap e a Source

Do stuff with stdout.

piape :: Siphon ByteString e a -> Piap e a Source

Do stuff with stderr.

piapoe :: Lines e -> Lines e -> Siphon Text e a -> Piap e a Source

Do stuff with stdout and stderr combined as Text.

samei :: Piap e () Source

Pipe stdin to the created process' stdin.

sameo :: Piap e () Source

Pipe the created process' stdout to stdout.

samee :: Piap e () Source

Pipe the created process' stderr to stderr.

toPiping :: Piap e a -> Piping e a Source