delta-0.1.0.0: A library for detecting file changes

Safe HaskellNone
LanguageHaskell2010

System.Delta.Class

Documentation

class FileWatcher a where

Methods

defaultWatcher :: FilePath -> IO a

Each type provides a default watcher for a pass

changedFiles :: a -> Event FileInfo

An event that gives some info on changed files (disjunct from deleted and new files)

newFiles :: a -> Event FilePath

An event that fires for each new file

deletedFiles :: a -> Event FilePath

An event that fires for each deleted path

cleanUpAndClose :: a -> IO ()

Free all possibly used resources. No event will fire after this.