Copyright | 2019 Emily Pillmore |
---|---|
License | BSD |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | TypeFamilies, Rank2Types |
Safe Haskell | None |
Language | Haskell2010 |
Convenient data type with associated optics + isos for working
with the output of a createProcess
call.
Synopsis
- data ProcessHandler = ProcessHandler {}
- _Handler :: Iso' ProcessHandler (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
- hstdin :: Lens' ProcessHandler (Maybe Handle)
- hstdout :: Lens' ProcessHandler (Maybe Handle)
- hstderr :: Lens' ProcessHandler (Maybe Handle)
- hhandle :: Lens' ProcessHandler ProcessHandle
- defaultCreateProcess :: CreateProcess
Types
data ProcessHandler Source #
A convenient handler for the output of a createProcess
call.
This data containes 4 components:
ProcessHandler | |
|
Isos
_Handler :: Iso' ProcessHandler (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) Source #
An iso between the ProcessHandler data and its product representation
Lenses
hhandle :: Lens' ProcessHandler ProcessHandle Source #
A lens into the process handle
Defaults
defaultCreateProcess :: CreateProcess Source #
A default for a CreateProcess