| Copyright | 2019 Emily Pillmore |
|---|---|
| License | BSD |
| Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
| Stability | Experimental |
| Portability | TypeFamilies, RankNTypes |
| Safe Haskell | Safe |
| Language | Haskell2010 |
System.Process.Microlens
Description
This module provides all of the optical exports, as well ask any associated
combinators. For just the optics, see Optics, or
if you are in need of something lighter weight, just for working with a
CreateProcess in terms of getters and setters, see https://hackage.haskell.org/package/microlens
For more information on usage and how to work with lenses, see http://github.com/ekmett/lens/wiki and the tests for example uses. You can also ask questions on Freenode in the #haskell-lens channel.
Synopsis
- cmdspec_ :: Lens' CreateProcess CmdSpec
- cwd_ :: Lens' CreateProcess (Maybe FilePath)
- env_ :: Lens' CreateProcess (Maybe [(String, String)])
- stdin_ :: Lens' CreateProcess StdStream
- stdout_ :: Lens' CreateProcess StdStream
- stderr_ :: Lens' CreateProcess StdStream
- closefds :: Lens' CreateProcess Bool
- creategroup :: Lens' CreateProcess Bool
- delegatectlc :: Lens' CreateProcess Bool
- detachconsole :: Lens' CreateProcess Bool
- newsession :: Lens' CreateProcess Bool
- childgroup :: Lens' CreateProcess (Maybe CGid)
- childuser :: Lens' CreateProcess (Maybe CUid)
- useprocessjobs :: Lens' CreateProcess Bool
- arguments :: Traversal' CmdSpec [String]
- class HasStdin a where
- class HasStdout a where
- class HasStderr a where
- arguing :: String -> CmdSpec -> CmdSpec
Lenses
cmdspec_ :: Lens' CreateProcess CmdSpec Source #
Lens into the cmdspec entry of the CreateProcess record
cwd_ :: Lens' CreateProcess (Maybe FilePath) Source #
Lens into the cwd entry of the CreateProcess record
env_ :: Lens' CreateProcess (Maybe [(String, String)]) Source #
Lens into the env entry of the CreateProcess record
stdin_ :: Lens' CreateProcess StdStream Source #
Lens into the std_in entry of the CreateProcess record
stdout_ :: Lens' CreateProcess StdStream Source #
Lens into the std_out entry of the CreateProcess record
stderr_ :: Lens' CreateProcess StdStream Source #
Lens into the std_err entry of the CreateProcess record
closefds :: Lens' CreateProcess Bool Source #
Lens into the close_fds entry of the CreateProcess record
creategroup :: Lens' CreateProcess Bool Source #
Lens into the create_group entry of the CreateProcess record
delegatectlc :: Lens' CreateProcess Bool Source #
Lens into the delegate_ctlc entry of the CreateProcess record
detachconsole :: Lens' CreateProcess Bool Source #
Lens into the detach_console entry of the CreateProcess record
newsession :: Lens' CreateProcess Bool Source #
Lens into the new_session entry of the CreateProcess record
childgroup :: Lens' CreateProcess (Maybe CGid) Source #
Lens into the child_group entry of the CreateProcess record
childuser :: Lens' CreateProcess (Maybe CUid) Source #
Lens into the child_user entry of the CreateProcess record
useprocessjobs :: Lens' CreateProcess Bool Source #
Lens into the use_process_jobs entry of the CreateProcess record
Traversals
arguments :: Traversal' CmdSpec [String] Source #
Traversal' into the arguments of a command
Examples:
>>>RawCommand "/bin/ls" ["-l"] ^. arguments["-l"]