polysemy-process-0.6.0.1: Polysemy Effects for System Processes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Process.Interpreter.Process

Description

 
Synopsis

Documentation

interpretProcess Source #

Arguments

:: forall resource err o e r. Member (Scoped resource (SystemProcess !! err)) r 
=> Members [ProcessOutput o, ProcessOutput e, Resource, Race, Async, Embed IO] r 
=> Bool

Whether to discard output chunks if the queue is full or block.

-> Int

Maximum number of chunks allowed to be queued for each of the three standard pipes.

-> InterpreterFor (Scoped () (Process ByteString o e) !! ProcessError) r 

Interpret Process with a system process resource whose file descriptors are connected to three TBMQueues, deferring decoding of stdout and stderr to the interpreters of two ProcessOutput effects.

interpretProcessByteString Source #

Arguments

:: forall resource err r. Members [Scoped resource (SystemProcess !! err), Resource, Race, Async, Embed IO] r 
=> Bool

Whether to discard output chunks if the queue is full.

-> Int

Maximum number of chunks allowed to be queued for each of the three standard pipes.

-> InterpreterFor (Scoped () (Process ByteString ByteString ByteString) !! ProcessError) r 

Interpret Process with a system process resource whose file descriptors are connected to three TBMQueues, producing ByteStrings.

interpretProcessByteStringLines Source #

Arguments

:: forall resource err r. Members [Scoped resource (SystemProcess !! err), Resource, Race, Async, Embed IO] r 
=> Bool

Whether to discard output chunks if the queue is full.

-> Int

Maximum number of chunks allowed to be queued for each of the three standard pipes.

-> InterpreterFor (Scoped () (Process ByteString ByteString ByteString) !! ProcessError) r 

Interpret Process with a system process resource whose file descriptors are connected to three TBMQueues, producing chunks of lines of ByteStrings.

interpretProcessText Source #

Arguments

:: forall resource err r. Members [Scoped resource (SystemProcess !! err), Resource, Race, Async, Embed IO] r 
=> Bool

Whether to discard output chunks if the queue is full.

-> Int

Maximum number of chunks allowed to be queued for each of the three standard pipes.

-> InterpreterFor (Scoped () (Process ByteString Text Text) !! ProcessError) r 

Interpret Process with a system process resource whose file descriptors are connected to three TBMQueues, producing Texts.

interpretProcessTextLines Source #

Arguments

:: forall resource err r. Members [Scoped resource (SystemProcess !! err), Resource, Race, Async, Embed IO] r 
=> Bool

Whether to discard output chunks if the queue is full.

-> Int

Maximum number of chunks allowed to be queued for each of the three standard pipes.

-> InterpreterFor (Scoped () (Process ByteString Text Text) !! ProcessError) r 

Interpret Process with a system process resource whose file descriptors are connected to three TBMQueues, producing chunks of lines of Texts.