touched-0.2.0.1: Library (and cli) to execute a procedure on file change.

Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Touched.Procedure

Synopsis

Documentation

data Procedure a b Source

A process defined by three values: exec - the "process" type kill - takes a launched process and stops it fork - takes an exec and launches it into the background

Constructors

Procedure 

Fields

fork :: a -> IO b
 
kill :: b -> IO ()
 
exec :: a
 

Instances

Show (Procedure a b) 

type AsyncIO = Procedure (IO ()) ThreadId Source

A type synonym for a Haskell native process.

async :: IO () -> AsyncIO Source

A "smart constructor" for Haskell native processes

type AsyncCmd = Procedure CreateProcess CmdHandles Source

A type synonym for shell commands in the Process module

cmd :: String -> AsyncCmd Source

A smart constructor for shell processes. Takes a string to launch in the shell and returns the process