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

Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Touched

Synopsis

Documentation

async :: IO () -> AsyncIO Source

A "smart constructor" for Haskell native processes

cmd :: String -> AsyncCmd Source

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

onChangeAny :: Bool -> [FilePath] -> Procedure a b -> IO () Source

Launches a procedure if any specified file has changed

onChangeAll :: Bool -> [FilePath] -> Procedure a b -> IO () Source

Launches a procedure if every specified file has changed

onChangeFile :: FilePath -> Procedure a b -> IO () Source

Takes a single file and launches a procedure when it changes

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

Instances

Show (Procedure a b)