-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
Thinking of a new API for version 0.4.
The current callback based API has several weaknesses, including silently dropping exceptions from the user's callback code which several users has noticed.
A new API could look something like this:
inotify :: IO INotify
addInotify :: INotify -> [EventVariety] -> FilePath -> IO WatchDescriptor
readEvents :: INotify -> IO [Event]It'd be without background threads, without channels, thus much simpler.
Event overflow would be left to the linux kernel.
simonmichael