| Safe Haskell | None |
|---|
System.KQueue.HighLevel
Description
This module contains higher-level abstraction for monitoring file system changes, built on top of the bindings from System.KQueue.
Documentation
watchFile :: FilePath -> (EventType -> IO ()) -> IO WatcherSource
Watch a file for changes. The file doesn't have to exist, but the
directory it is in, does. Returns immediately. You can stop
watching by passing the Watcher to stopWatching.
stopWatching :: Watcher -> IO ()Source
Stop a watcher from watching.
The type of file change that occurred.