@hackage hinotify0.4.2
Haskell binding to inotify
Categories
License
BSD-3-Clause
Maintainer
Tom McLaughlin <tom@codedown.io>
Links
Versions
Installation
Dependencies (5)
- async >=2 && <3
- base >=4.5.0.0 && <5
- bytestring
- containers
- unix Show all…
Dependents (36)
@hackage/texbuilder, @hackage/watcher, @hackage/git-annex, @hackage/RollingDirectory, @hackage/filecache, @hackage/follow-file, Show all…
hinotify: inotify for Haskell
About
This package provides bindings to inotify, which has been part of the Linux kernel since 2.6.13.
The inotify subsystem provides file system event notifications. Simply add a watcher to a file or directory and you get events when it is accessed, modified, etc.
News
See CHANGELOG.md.
API
The API basically consists of:
initINotify :: IO INotify
addWatch :: INotify
-> [EventVariety] -- different events to listen on
-> RawFilePath -- file/directory to watch
-> (Event -> IO ()) -- event handler callback
-> IO WatchDescriptor
removeWatch :: WatchDescriptor -> IO ()
Author
Lennart Kolmodin
kolmodin at gmail.com
Legal
This software is released under a BSD-style license. See LICENSE for more details.
Copyright © 2007-2012 Lennart Kolmodin