rib-0.12.0.0: Static site generator based on Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Watch

Description

Filesystem watching using fsnotify

Synopsis

Documentation

onTreeChange :: FilePath -> ([Event] -> IO ()) -> IO () Source #

Recursively monitor the contents of the given path and invoke the given IO action for every event triggered.

If multiple events fire rapidly, the IO action is invoked only once, taking those multiple events as its argument.