lens-process-0.0.5.0: Optics for system processes

Copyright2019 Emily Pillmore
LicenseBSD
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
PortabilityTypeFamilies
Safe HaskellSafe
LanguageHaskell2010

System.Process.Lens.CommandSpec

Contents

Description

 
Synopsis

Traversals

arguments :: Traversal' CmdSpec [String] Source #

Traversal' into the arguments of a command

Prisms

_RawCommand :: Prism' CmdSpec (FilePath, [String]) Source #

A prism into the RawCommand case of a CmdSpec

Classy Prisms

class IsShell a where Source #

Classy prism into the shell command of a CmdSpec

Instances
IsShell CmdSpec Source # 
Instance details

Defined in System.Process.Lens.CommandSpec

class IsRaw a where Source #

Classy prism into the shell command of a CmdSpec

Methods

_Raw :: Prism' a (FilePath, [String]) Source #

Instances
IsRaw CmdSpec Source # 
Instance details

Defined in System.Process.Lens.CommandSpec

Combinators

arguing :: String -> CmdSpec -> CmdSpec Source #

Append an argument to the argument list of a RawCommand

shellOf :: IsShell a => String -> a Source #

Lift a String into a type via ShellCommand with a prism into the command

rawOf :: IsRaw a => FilePath -> [String] -> a Source #

Lift a FilePath and list of arguments into a type via RawCommand with a prism into the command