hinotify-0.2: Haskell binding to INotifySource codeContentsIndex
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 initINotify to get a INotify, then use addWatch 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 removeWatch once you don't want to watch a file any more.

Documentation
initINotify :: IO INotifySource
addWatch :: INotify -> [EventVariety] -> FilePath -> (Event -> IO ()) -> IO WatchDescriptorSource
removeWatch :: INotify -> WatchDescriptor -> IO ()Source
data INotify Source
show/hide Instances
data WatchDescriptor Source
show/hide Instances
data Event Source
Constructors
AccessedA file was accessed. Accessed isDirectory file
isDirectory :: Bool
maybeFilePath :: Maybe FilePath
ModifiedA file was modified. Modified isDiroctory file
isDirectory :: Bool
maybeFilePath :: Maybe FilePath
AttributesA files attributes where changed. Attributes isDirectory file
isDirectory :: Bool
maybeFilePath :: Maybe FilePath
ClosedA file was closed. Closed isDirectory file wasWriteable
isDirectory :: Bool
maybeFilePath :: Maybe FilePath
wasWriteable :: Bool
OpenedA file was opened. Opened isDirectory maybeFilePath
isDirectory :: Bool
maybeFilePath :: Maybe FilePath
MovedOutA file was moved away from the watched dir. MovedFrom isDirectory from cookie
isDirectory :: Bool
filePath :: FilePath
moveCookie :: Cookie
MovedInA file was moved into the watched dir. MovedTo isDirectory to cookie
isDirectory :: Bool
filePath :: FilePath
moveCookie :: Cookie
MovedSelfThe watched file was moved. MovedSelf isDirectory
isDirectory :: Bool
CreatedA file was created. Created isDirectory file
isDirectory :: Bool
filePath :: FilePath
DeletedA file was deleted. Deleted isDirectory file
isDirecotry :: Bool
filePath :: FilePath
DeletedSelfThe file watched was deleted.
UnmountedThe file watched was unmounted.
QOverflowThe queue overflowed.
Ignored
Unknown FDEvent
show/hide Instances
data EventVariety Source
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 Source
show/hide Instances
Produced by Haddock version 2.4.2