lens-process-0.0.5.0: Optics for system processes

Safe HaskellSafe
LanguageHaskell2010

System.Process.Lens.Internal

Contents

Synopsis

Types

data ProcessHandler Source #

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

  1. a handle to stdin if it was requested
  2. a handle to stdout if it was requested
  3. a handle to stderr if it was requested
  4. a process handle, containing a pid lock, information regarding ctcl-c delegation, and closed/open handle status info.

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