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

Polysemy.Process.Interpreter.ProcessStdio

Description

 
Synopsis

Documentation

interpretProcessByteStringNative Source #

Arguments

:: Members [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.

-> ProcessConfig () () ()

Basic config. The pipes will be changed to Handle by the interpreter.

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

Interpret Process as a native SystemProcess, producing unaccumulated chunks of ByteString.

interpretProcessByteStringLinesNative Source #

Arguments

:: Members [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.

-> ProcessConfig () () ()

Basic config. The pipes will be changed to Handle by the interpreter.

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

Interpret Process as a native SystemProcess, producing lines of ByteString.

interpretProcessTextNative Source #

Arguments

:: Members [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.

-> ProcessConfig () () ()

Basic config. The pipes will be changed to Handle by the interpreter.

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

Interpret Process as a native SystemProcess, producing unaccumulated chunks of Text.

interpretProcessTextLinesNative Source #

Arguments

:: Members [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.

-> ProcessConfig () () ()

Basic config. The pipes will be changed to Handle by the interpreter.

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

Interpret Process as a native SystemProcess, producing lines of Text.