Safe Haskell | None |
---|---|
Language | GHC2021 |
Provides the low-level IO
functions for running shell commands.
Synopsis
- newtype Stderr = MkStderr (List UnlinedText)
- tryCommandLogging :: forall m env. (HasAnyError env, HasCallStack, HasCommands env, HasInit env, HasCommandLogging env, HasCommonLogging env, HasConsoleLogging env (Region m), HasFileLogging env, MonadHandleReader m, MonadIORef m, MonadMask m, MonadReader env m, MonadRegionLogger m, MonadSTM m, MonadThread m, MonadTime m, MonadTypedProcess m) => CommandP1 -> m CommandResult
Stdout/stderr newtypes
Newtype wrapper for stderr.
Running commands
:: forall m env. (HasAnyError env, HasCallStack, HasCommands env, HasInit env, HasCommandLogging env, HasCommonLogging env, HasConsoleLogging env (Region m), HasFileLogging env, MonadHandleReader m, MonadIORef m, MonadMask m, MonadReader env m, MonadRegionLogger m, MonadSTM m, MonadThread m, MonadTime m, MonadTypedProcess m) | |
=> CommandP1 | Command to run. |
-> m CommandResult | Result. |
Runs the command, returning the time elapsed along with a possible error.