delta-0.2.1.2: A library for detecting file changes

Safe HaskellNone
LanguageHaskell2010

System.Delta.Class

Synopsis

Documentation

data FileWatcher Source

A type for watching a directory based on functional reactive programming At the core of this class are three event streams:

  • changedFiles is a stream of canonicalized FilePaths on changed files
  • newFiles is a stream of canonicalized FilePaths of newly created files
  • deletedFiles is a stream of canonicalized FilePaths of deleted files

Constructors

FileWatcher 

Fields

newFiles :: Event FilePath

Newly created files, renamed files

deletedFiles :: Event FilePath

Deleted files, renamed files

changedFiles :: Event FilePath

Changed files

cleanUpAndClose :: IO ()

A function to clean and close ^ this watcher

mergeWatchers :: FileWatcher -> FileWatcher -> FileWatcher Source

Merge two watchers that are watching different directories