reanimate-0.1.1.0: unix/Reanimate/FileWatch.hs
module Reanimate.FileWatch ( watchFile ) where import System.INotify watchFile :: FilePath -> IO () -> IO () watchFile path handler = do notify <- initINotify addWatch notify [Modify] path (const handler) return ()