Cross-platform file change notifications for Haskell
open sourcefsnotify BSD 3-clause licencefree
fsnotify is a Haskell library with one interface for file creation, modification and deletion notifications across Linux, Windows, macOS and FreeBSD. It builds on each platform's own notification library (hinotify on Linux and FreeBSD, the Win32 API on Windows, hfsevents on macOS). It isn't the Go fsnotify.
Problems it solves
- get notified in Haskell when files in a directory change
- watch files the same way on Linux, macOS and Windows from a Haskell program
- rebuild or reload my Haskell app when a source file is saved
Features
- one API for file create, modify and delete events
- Linux and FreeBSD through hinotify, Windows through Win32, macOS through hfsevents
- watch tools built on it, such as spy and steeloverseer
Alternatives
The same job
These do what fsnotify (Haskell) does.
- filepath Cross-platform file path manipulation for Haskell