Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SystemProcess :: Effect where
- ReadStdout :: SystemProcess m ByteString
- ReadStderr :: SystemProcess m ByteString
- WriteStdin :: ByteString -> SystemProcess m ()
- Pid :: SystemProcess m Pid
- Signal :: Signal -> SystemProcess m ()
- Wait :: SystemProcess m ExitCode
- withSystemProcess :: forall resource err r. Member (Scoped resource (SystemProcess !! err)) r => InterpreterFor (SystemProcess !! err) r
- interrupt :: Member SystemProcess r => Sem r ()
- term :: Member SystemProcess r => Sem r ()
- kill :: Member SystemProcess r => Sem r ()
Documentation
data SystemProcess :: Effect where Source #
Low-level interface for a process, operating on raw chunks of bytes. Interface is modeled after System.Process.
ReadStdout :: SystemProcess m ByteString | Read a chunk from stdout. |
ReadStderr :: SystemProcess m ByteString | Read a chunk from stderr. |
WriteStdin :: ByteString -> SystemProcess m () | Write a |
Pid :: SystemProcess m Pid | Obtain the process ID. |
Signal :: Signal -> SystemProcess m () | Send a |
Wait :: SystemProcess m ExitCode | Wait for the process to terminate, returning its exit code. |
Instances
type DefiningModule SystemProcess Source # | |
Defined in Polysemy.Process.Effect.SystemProcess |
withSystemProcess :: forall resource err r. Member (Scoped resource (SystemProcess !! err)) r => InterpreterFor (SystemProcess !! err) r Source #
Create a scoped resource for SystemProcess
.