hinotify-0.1: Haskell binding to INotifyContentsIndex
System.INotify
Portabilityhc portable, linux only
Stabilityexperimental
Maintainerkolmodin@dtek.chalmers.se
Description

A Haskell binding to INotify. See http://www.kernel.org/pub/linux/kernel/people/rml/inotify/ and man inotify.

Use inotify_init to get a INotify, then use inotify_add_watch to add a watch on a file or directory. Select which events you're interested in with EventVariety, which corresponds to the Event events.

Use inotify_rm_watch once you don't want to watch a file any more.

Documentation
inotify_init :: IO INotify
inotify_add_watch :: INotify -> [EventVariety] -> FilePath -> (Event -> IO ()) -> IO WatchDescriptor
inotify_rm_watch :: INotify -> WatchDescriptor -> IO ()
data INotify
show/hide Instances
data WatchDescriptor
show/hide Instances
data Event
Constructors
Accessed Bool (Maybe FilePath)A file was accessed. Accessed isDirectory file
Modified Bool (Maybe FilePath)A file was modified. Modified isDiroctory file
Attributes Bool (Maybe FilePath)A files attributes where changed. Attributes isDirectory file
Closed Bool Bool (Maybe FilePath)A file was closed. Closed isDirectory wasWritable file
Opened Bool (Maybe FilePath)A file was opened. Opened isDirectory maybeFilePath
MovedOut Bool Cookie FilePathA file was moved away from the watched dir. MovedFrom isDirectory from
MovedIn Bool Cookie FilePathA file was moved into the watched dir. MovedTo isDirectory to
MovedSelf BoolThe watched file was moved. MovedSelf isDirectory
Created Bool FilePathA file was created. Created isDirectory file
Deleted Bool FilePathA file was deleted. Deleted isDirectory file
DeletedSelfThe file watched was deleted.
UnmountedThe file watched was unmounted.
QOverflowThe queue overflowed.
Ignored
Unknown FDEvent
show/hide Instances
data EventVariety
Constructors
Access
Modify
Attrib
Close
CloseWrite
CloseNoWrite
Open
Move
MoveIn
MoveOut
MoveSelf
Create
Delete
DeleteSelf
OnlyDir
NoSymlink
MaskAdd
OneShot
AllEvents
show/hide Instances
data Cookie
show/hide Instances
Produced by Haddock version 0.8