Copyright | 2019 Emily Pillmore |
---|---|
License | BSD |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | TypeFamilies, Rank2Types |
Safe Haskell | Safe |
Language | Haskell2010 |
Convenient data type with associated optics + isos for working
with the output of a createProcess
call.
Synopsis
- data ProcessHandler = ProcessHandler {}
- hstdin :: Lens' ProcessHandler (Maybe Handle)
- hstdout :: Lens' ProcessHandler (Maybe Handle)
- hstderr :: Lens' ProcessHandler (Maybe Handle)
- hhandle :: Lens' ProcessHandler ProcessHandle
- _Handler :: Lens' ProcessHandler (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
- defaultCreateProcess :: CreateProcess
Types
data ProcessHandler Source #
A convenient handler for the output of a createProcess
call.
ProcessHandler | |
|
Lenses
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
defaultCreateProcess :: CreateProcess Source #
A default for a CreateProcess