lens-process-0.3.0.1: Optics for system processes
Copyright2019 Emily Pillmore
LicenseBSD
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
PortabilityTypeFamilies, Rank2Types
Safe HaskellNone
LanguageHaskell2010

System.Process.Lens.ProcessHandler

Description

Convenient data type with associated optics + isos for working with the output of a createProcess call.

Synopsis

Types

data ProcessHandler Source #

A convenient handler for the output of a createProcess call. This data containes 4 components:

Constructors

ProcessHandler 

Fields

Isos

_Handler :: Iso' ProcessHandler (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) Source #

An iso between the ProcessHandler data and its product representation

Lenses

hstdin :: Lens' ProcessHandler (Maybe Handle) Source #

A lens into the stdin handle if requested

hstdout :: Lens' ProcessHandler (Maybe Handle) Source #

A lens into the stdout handle if requested

hstderr :: Lens' ProcessHandler (Maybe Handle) Source #

A lens into the stderr handle if requested

hhandle :: Lens' ProcessHandler ProcessHandle Source #

A lens into the process handle

Defaults