microlens-process-0.2.0.1: Micro-optics for the process library
Copyright2019 Emily Pillmore
LicenseBSD
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
PortabilityTypeFamilies, Rank2Types
Safe HaskellSafe
LanguageHaskell2010

System.Process.Microlens.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.

Constructors

ProcessHandler 

Fields

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

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

An isomorphism between a ProcessHandler and its tuple representation

Defaults