inotify provides file system event notification, simply add a watcher to a file or directory and get an event when it is accessed or modified. This package provides haskell bindings for inotify.