| Safe Haskell | Safe-Infered |
|---|
Data.Conduit.Process
- pipeProcess :: MonadResource m => CreateProcess -> Pipe ByteString ByteString m ()
- sourceProcess :: MonadResource m => CreateProcess -> Source m ByteString
- conduitProcess :: MonadResource m => CreateProcess -> Conduit ByteString m ByteString
- pipeCmd :: MonadResource m => String -> Pipe ByteString ByteString m ()
- sourceCmd :: MonadResource m => String -> Source m ByteString
- conduitCmd :: MonadResource m => String -> Conduit ByteString m ByteString
- shell :: String -> CreateProcess
- proc :: FilePath -> [String] -> CreateProcess
- data CreateProcess = CreateProcess {}
- data CmdSpec
- data StdStream
- = Inherit
- | UseHandle Handle
- | CreatePipe
- data ProcessHandle
Run process
pipeProcess :: MonadResource m => CreateProcess -> Pipe ByteString ByteString m ()Source
Pipe of process
sourceProcess :: MonadResource m => CreateProcess -> Source m ByteStringSource
Source of process
conduitProcess :: MonadResource m => CreateProcess -> Conduit ByteString m ByteStringSource
Conduit of process
Run shell command
pipeCmd :: MonadResource m => String -> Pipe ByteString ByteString m ()Source
Pipe of shell command
sourceCmd :: MonadResource m => String -> Source m ByteStringSource
Source of shell command
conduitCmd :: MonadResource m => String -> Conduit ByteString m ByteStringSource
Conduit of shell command
Convenience re-exports
shell :: String -> CreateProcess
Construct a CreateProcess record for passing to createProcess,
representing a command to be passed to the shell.
proc :: FilePath -> [String] -> CreateProcess
Construct a CreateProcess record for passing to createProcess,
representing a raw command with arguments.
data CreateProcess
Constructors
| CreateProcess | |
Fields
| |
data CmdSpec
Constructors
| ShellCommand String | a command line to execute using the shell |
| RawCommand FilePath [String] | the filename of an executable with a list of arguments |
data StdStream
Constructors
| Inherit | Inherit Handle from parent |
| UseHandle Handle | Use the supplied Handle |
| CreatePipe | Create a new pipe. The returned
|
data ProcessHandle