| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Control.Process.CmdSpec
Synopsis
- data CmdSpec
- class GetCmdSpec a where
- getCmdSpec :: Getter a CmdSpec
- class GetCmdSpec a => HasCmdSpec a where
- cmdSpec :: Lens' a CmdSpec
- shellCommand :: Traversal' a String
- rawCommand :: Traversal' a (FilePath, [String])
- rawCommandExe :: Traversal' a FilePath
- rawCommandArgumentList :: Traversal' a [String]
- rawCommandArguments :: Traversal' a String
- class ReviewCmdSpec a where
- reviewCmdSpec :: Review a CmdSpec
- class ReviewCmdSpec a => AsCmdSpec a where
- _CmdSpec :: Prism' a CmdSpec
- _ShellCommand :: Prism' a String
- _RawCommand :: Prism' a (FilePath, [String])
- _RawCommandExe :: Traversal' a FilePath
- _RawCommandArgumentList :: Traversal' a [String]
- _RawCommandArguments :: Traversal' a String
Documentation
Constructors
| ShellCommand String | A command line to execute using the shell |
| RawCommand FilePath [String] | The name of an executable with a list of arguments The
Windows does not have a mechanism for passing multiple arguments.
When using |
Instances
| IsString CmdSpec | construct a Since: process-1.2.1.0 |
Defined in System.Process.Common Methods fromString :: String -> CmdSpec # | |
| Show CmdSpec | |
| AsCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |
| GetCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |
| HasCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec Methods cmdSpec :: Lens' CmdSpec CmdSpec Source # shellCommand :: Traversal' CmdSpec String Source # rawCommand :: Traversal' CmdSpec (FilePath, [String]) Source # rawCommandExe :: Traversal' CmdSpec FilePath Source # rawCommandArgumentList :: Traversal' CmdSpec [String] Source # | |
| ReviewCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |
| Eq CmdSpec | |
class GetCmdSpec a where Source #
Type class for values that can be viewed as a CmdSpec.
>>>view getCmdSpec (ShellCommand "ls -la")ShellCommand "ls -la"
Methods
getCmdSpec :: Getter a CmdSpec Source #
Instances
| GetCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |
| GetCmdSpec CreateProcess Source # |
|
Defined in Control.Process.CmdSpec Methods | |
class GetCmdSpec a => HasCmdSpec a where Source #
Type class for values with a lens into a CmdSpec.
>>>view cmdSpec (ShellCommand "ls -la")ShellCommand "ls -la"
Minimal complete definition
Methods
cmdSpec :: Lens' a CmdSpec Source #
shellCommand :: Traversal' a String Source #
rawCommand :: Traversal' a (FilePath, [String]) Source #
rawCommandExe :: Traversal' a FilePath Source #
Instances
class ReviewCmdSpec a where Source #
Type class for values that can be constructed from a CmdSpec.
>>>review reviewCmdSpec (ShellCommand "ls") :: CmdSpecShellCommand "ls"
Methods
reviewCmdSpec :: Review a CmdSpec Source #
Instances
| ReviewCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |
class ReviewCmdSpec a => AsCmdSpec a where Source #
Type class for values with a prism into a CmdSpec.
>>>preview _CmdSpec (ShellCommand "ls -la")Just (ShellCommand "ls -la")
Minimal complete definition
Methods
_CmdSpec :: Prism' a CmdSpec Source #
_ShellCommand :: Prism' a String Source #
_RawCommand :: Prism' a (FilePath, [String]) Source #
_RawCommandExe :: Traversal' a FilePath Source #
Instances
| AsCmdSpec CmdSpec Source # |
|
Defined in Control.Process.CmdSpec | |