Simplified wrappers for common Node.ChildProcess operations.
bower install purescript-simple-child-process
module Main where
import Prelude
import Control.Monad.Aff (Aff, launchAff)
import Control.Monad.Aff.Console (CONSOLE, log)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Exception (EXCEPTION)
import Node.Buffer (BUFFER)
import Node.ChildProcess.Simple (CHILD_PROCESS, execAff')
type ExecEffects e = (buffer :: BUFFER, cp :: CHILD_PROCESS, exception :: EXCEPTION | e)
main :: forall e. Eff (ExecEffects (console :: CONSOLE | e)) Unit
main = void $ launchAff do
result <- execAff' "echo \"Hi\""
log result
Module documentation is published on Pursuit.