Skip to content

haskell-effectful/typed-process-effectful

Folders and files

NameName
Last commit message
Last commit date
Oct 31, 2024
Jul 16, 2024
Jul 16, 2024
Jul 16, 2024
Feb 10, 2023
Oct 31, 2024
May 4, 2022
Jul 22, 2022
Jul 13, 2022
Jul 16, 2024
Feb 10, 2023
Jul 16, 2024
Oct 31, 2024

Repository files navigation

typed-process-effectful

Description

An alternative Process effect for the effectful ecosystem. While to the Process effect shipped with the effectful library is based on the process package this implementation relies on typed-process instead.

How to use

The functions exposed by the Effectful.Process.Typed module are those from System.Process.Typed with the notable difference that they have a TypedProcess :> es constraint. Use runTypedProcess to handle the effect and eliminate the constraint.

import Effectful.Monad
import Effectful.Process.Typed

main :: IO ()
main = runEff . runTypedProcess $ true

true :: TypedProcess :> es => Eff es ()
true = Effectful.Process.Typed.runProcess_ $ shell "true"