Copyright | 2019 Emily Pillmore |
---|---|
License | BSD |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | TypeFamilies, Rank2Types |
Safe Haskell | Safe |
Language | Haskell2010 |
StdStream
prisms and classy prisms.
Synopsis
- _Inherit :: Prism' StdStream StdStream
- _UseHandle :: Prism' StdStream Handle
- _CreatePipe :: Prism' StdStream StdStream
- _NoStream :: Prism' StdStream StdStream
- class IsInherit a where
- class IsUseHandle a where
- _UsesHandle :: Prism' a Handle
- class IsCreatePipe a where
- _CreatesPipe :: Prism' a StdStream
- class IsNoStream a where
- _NoStreams :: Prism' a StdStream
- usehandleOf :: IsUseHandle a => Handle -> a
Prisms
_CreatePipe :: Prism' StdStream StdStream Source #
A prism into the CreatePipe
structure of a StdStream
Classy Prisms
class IsUseHandle a where Source #
_UsesHandle :: Prism' a Handle Source #
Instances
IsUseHandle StdStream Source # | |
Defined in System.Process.Lens.StdStream |
class IsCreatePipe a where Source #
_CreatesPipe :: Prism' a StdStream Source #
Instances
IsCreatePipe StdStream Source # | |
Defined in System.Process.Lens.StdStream |
class IsNoStream a where Source #
_NoStreams :: Prism' a StdStream Source #
Instances
IsNoStream StdStream Source # | |
Defined in System.Process.Lens.StdStream |
Combinators
usehandleOf :: IsUseHandle a => Handle -> a Source #
Inject a handle into something with a prism into the handle