lens-process-0.0.5.0: Optics for system processes

Copyright2019 Emily Pillmore
LicenseBSD
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
PortabilityTypeFamilies, Rank2Types
Safe HaskellSafe
LanguageHaskell2010

System.Process.Lens.StdStream

Contents

Description

StdStream prisms and classy prisms.

Synopsis

Prisms

_Inherit :: Prism' StdStream StdStream Source #

A prism into the Inherit structure of a StdStream

_UseHandle :: Prism' StdStream Handle Source #

A prism into the UseHandle structure's Handle for a StdStream

_CreatePipe :: Prism' StdStream StdStream Source #

A prism into the CreatePipe structure of a StdStream

_NoStream :: Prism' StdStream StdStream Source #

A prism into the NoStream structure of a StdStream

Classy Prisms

class IsInherit a where Source #

Class constraint proving a type has a prism into an Inherit structure. In general, this seems redundant, however, this class is a proof on a that a is an Inherit, which is a wonderful thing to prove.

class IsUseHandle a where Source #

Class constraint proving a type has a prism into a Handle via a UseHandle structure.

class IsCreatePipe a where Source #

Class constraint proving a type has a prism into a Handle via a UseHandle structure.

class IsNoStream a where Source #

Class constraint proving a type has a prism into a Handle via a UseHandle structure.

Combinators

usehandleOf :: IsUseHandle a => Handle -> a Source #

Inject a handle into something with a prism into the handle