System.Hiernotify.Polling
- mkPollNotifier :: Int -> Configuration -> IO Notifier
- data Configuration = Configuration {}
- data DifferenceP a = DifferenceP {}
- type Difference = DifferenceP FilePath
- data Notifier = Notifier {
- difference :: IO (Difference, [FilePath])
- stop :: IO ()
Documentation
Arguments
:: Int | minimum lapse between polling actions |
-> Configuration | notifier configuration |
-> IO Notifier | the polling notifier |
make a polling notifier , given an interval in seconds
data Configuration Source
Configuration for notifiers. Minimal configuration to build a notifier.
data DifferenceP a Source
Difference datatype containing a difference as three sets of paths. This datatype is the core content of a notification of changes in a hierarchy.
Constructors
DifferenceP | |
Instances
Functor DifferenceP | |
Eq a => Eq (DifferenceP a) | |
Show a => Show (DifferenceP a) | |
Eq a => Monoid (DifferenceP a) |
type Difference = DifferenceP FilePathSource
Abstract notifiers. A Notifier is an object controlling a hierarchy.
Its difference method will block until a Difference is available and at least a time of peace has elapsed.
Reading a difference must result internally in deleting the difference and updating the list of paths. The list of paths read together with the difference is always the list of paths to which the difference will be applied.
Constructors
Notifier | |
Fields
|