Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- terminateAndWaitForProcess :: StreamingProcessHandle -> IO ExitCode
- withAllExit :: (ExitCode -> Bool) -> [StreamingProcessHandle] -> IO a -> IO a
- withAnyExit :: (ExitCode -> Bool) -> [StreamingProcessHandle] -> IO a -> IO a
- withProcess :: CreateProcess -> ((Handle, Handle, StreamingProcessHandle) -> IO a) -> IO a
Documentation
terminateAndWaitForProcess :: StreamingProcessHandle -> IO ExitCode Source
Terminates and waits for given process.
:: (ExitCode -> Bool) | Predicate |
-> [StreamingProcessHandle] | Process handles to watch |
-> IO a | Action to run |
-> IO a |
Watch exit of given process handles, and if all of them exited and passed given predicate, runs action.
:: (ExitCode -> Bool) | Predicate |
-> [StreamingProcessHandle] | Process handles to watch |
-> IO a | Action to run |
-> IO a |
Watch exit of given process handles, and if any of them exited and passed given predicate, runs action.
:: CreateProcess | The process |
-> ((Handle, Handle, StreamingProcessHandle) -> IO a) | Action takes stdout, stderr and process handle |
-> IO a |
Runs given process and invoke action with stdout, stderr, process handle from it. stdout and stderr will be closed after action.