Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runWorker :: (Binary command, Binary event, MonadUnliftIO m, MonadThrow m) => WorkerConfig -> CreateProcess -> (Int -> ByteString -> m ()) -> Chan (Maybe command) -> (event -> m ()) -> m ExitCode
- getWorkerExe :: MonadIO m => m [Char]
- getDaemonExe :: MonadIO m => m [Char]
- data WorkerEnvSettings = WorkerEnvSettings {}
- prepareEnv :: WorkerEnvSettings -> IO [([Char], [Char])]
- modifyEnv :: WorkerEnvSettings -> Map [Char] [Char] -> Map [Char] [Char]
Documentation
:: (Binary command, Binary event, MonadUnliftIO m, MonadThrow m) | |
=> WorkerConfig | Extra Nix options, and other "env" values |
-> CreateProcess | Process invocation details. Will ignore std_in, std_out and std_err fields. |
-> (Int -> ByteString -> m ()) | |
-> Chan (Maybe command) | |
-> (event -> m ()) | |
-> m ExitCode |
Control a child process by communicating over stdin and stdout
using a Binary
interface.
getWorkerExe :: MonadIO m => m [Char] Source #
getDaemonExe :: MonadIO m => m [Char] Source #
data WorkerEnvSettings Source #
prepareEnv :: WorkerEnvSettings -> IO [([Char], [Char])] Source #