rib-0.12.0.0: Static site generator based on Shake
Rib.Watch
Description
Filesystem watching using fsnotify
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.