rib-0.8.0.0: Static site generator using Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Watch

Description

Filesystem watching using fsnotify

Synopsis

Documentation

onTreeChange :: Path b t -> ([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.