hinotify: Haskell binding to inotify

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

This library provides a wrapper to the Linux Kernel's inotify feature, allowing applications to subscribe to notifications when a file is accessed or modified.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.8.1, 0.3.9, 0.3.10, 0.4, 0.4.1, 0.4.2 (info)
Change log CHANGELOG.md
Dependencies async (>=2 && <3), base (>=4.5.0.0 && <5), bytestring, containers, unix [details]
License BSD-3-Clause
Author Lennart Kolmodin
Maintainer Tom McLaughlin <tom@codedown.io>
Category System
Home page https://github.com/kolmodin/hinotify
Bug tracker https://github.com/kolmodin/hinotify/issues
Source repo head: git clone git://github.com/kolmodin/hinotify.git
Uploaded by thomasjm at 2025-02-21T01:24:27Z
Distributions Arch:0.4.1, Debian:0.4, Fedora:0.4.1, FreeBSD:0.3.8.1, LTSHaskell:0.4.2, NixOS:0.4.1, Stackage:0.4.2, openSUSE:0.4.1
Reverse Dependencies 21 direct, 220 indirect [details]
Downloads 76792 total (205 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-02-21 [all 1 reports]

Readme for hinotify-0.4.2

[back to package description]

hinotify: inotify for Haskell

CI

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 ()

See this example or the docs.

Author

Lennart Kolmodin

kolmodin at gmail.com

This software is released under a BSD-style license. See LICENSE for more details.

Copyright © 2007-2012 Lennart Kolmodin