twitch-0.1.1.0: A high level file watcher DSL

Safe HaskellNone
LanguageHaskell2010

Twitch

Synopsis

Documentation

type Dep = DepM () Source

(|+) :: Dep -> (FilePath -> IO a) -> Dep infixl 8 Source

Set the add field

(|%) :: Dep -> (FilePath -> IO a) -> Dep infixl 8 Source

Set the modify field

(|-) :: Dep -> (FilePath -> IO a) -> Dep infixl 8 Source

Set the delete field

(|>) :: Dep -> (FilePath -> IO a) -> Dep infixl 8 Source

Set both the add and modify field to the same value

(|#) :: Dep -> Text -> Dep infixl 8 Source

Set the name

add' :: (FilePath -> IO a) -> Dep -> Dep Source

modify' :: (FilePath -> IO a) -> Dep -> Dep Source

delete' :: (FilePath -> IO a) -> Dep -> Dep Source

addModify :: (FilePath -> IO a) -> Dep -> Dep Source

data Rule Source

The pattern entity holds a name and pattern that is compiled when the rules are evaluated

type RuleAction = FilePath -> IO () Source

TODO maybe change this to have the timestamp