Safe Haskell | None |
---|---|
Language | GHC2021 |
Effectful.Process.Dynamic.Effect
Contents
Description
Provides a dynamic effect for typed process.
Since: 0.1
Synopsis
- data Process (a :: Type -> Type) b where
- CreateProcess :: forall (a :: Type -> Type). CreateProcess -> Process a (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
- CreateProcess_ :: forall (a :: Type -> Type). String -> CreateProcess -> Process a (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
- CallProcess :: forall (a :: Type -> Type). FilePath -> [String] -> Process a ()
- CallCommand :: forall (a :: Type -> Type). String -> Process a ()
- SpawnProcess :: forall (a :: Type -> Type). FilePath -> [String] -> Process a ProcessHandle
- SpawnCommand :: forall (a :: Type -> Type). String -> Process a ProcessHandle
- ReadCreateProcess :: forall (a :: Type -> Type). CreateProcess -> String -> Process a [Char]
- ReadProcess :: forall (a :: Type -> Type). FilePath -> [String] -> String -> Process a [Char]
- ReadCreateProcessWithExitCode :: forall (a :: Type -> Type). CreateProcess -> String -> Process a (ExitCode, String, String)
- ReadProcessWithExitCode :: forall (a :: Type -> Type). FilePath -> [String] -> String -> Process a (ExitCode, String, String)
- WithCreateProcess :: forall (a :: Type -> Type) b. CreateProcess -> (Maybe Handle -> Maybe Handle -> Maybe Handle -> ProcessHandle -> a b) -> Process a b
- CleanupProcess :: forall (a :: Type -> Type). (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> Process a ()
- GetPid :: forall (a :: Type -> Type). ProcessHandle -> Process a (Maybe Pid)
- GetCurrentPid :: forall (a :: Type -> Type). Process a CPid
- WaitForProcess :: forall (a :: Type -> Type). ProcessHandle -> Process a ExitCode
- GetProcessExitCode :: forall (a :: Type -> Type). ProcessHandle -> Process a (Maybe ExitCode)
- TerminateProcess :: forall (a :: Type -> Type). ProcessHandle -> Process a ()
- InterruptProcessGroupOf :: forall (a :: Type -> Type). ProcessHandle -> Process a ()
- CreatePipe :: forall (a :: Type -> Type). Process a (Handle, Handle)
- CreatePipeFd :: forall (a :: Type -> Type). Process a (FD, FD)
Effect
data Process (a :: Type -> Type) b where Source #
Dynamic effect for process.
Since: 0.1
Constructors
Instances
ShowEffect Process Source # | Since: 0.1 |
Defined in Effectful.Process.Dynamic.Effect | |
type DispatchOf Process Source # | |
Defined in Effectful.Process.Dynamic.Effect |