shaker-0.4.2: simple and interactive command-line build tool

Shaker.Listener

Description

Manage file listener operation for continuous mode. All communication are made via MVars

Synopsis

Documentation

listen :: CurrentFiles -> MvModifiedFiles -> Job -> IO ()Source

listen to the job box and process the job

schedule :: ListenerInput -> Job -> IO ()Source

manage the job box. Fill it with a job every delay

updateFileStat :: CurrentFiles -> MvModifiedFiles -> [FileInfo] -> [FileInfo] -> IO ()Source

Update the files status

data ListenState Source

Agregate all information of listener

Constructors

ListenState 

Fields

currentFiles :: CurrentFiles

Files found in the last check

mvModifiedFiles :: MvModifiedFiles

Differences between last and before last check

threadIds :: [ThreadId]

List of all forks id initialized