duplo-1.6.19: Frontend development build tool

Safe HaskellNone
LanguageHaskell2010

Development.Duplo.Watcher

Synopsis

Documentation

watch :: IO () -> [FilePath] -> IO () Source

Given some paths to watch and something to do, watch every 100ms without debouncing but would interrupt the action when there is a new event.

handleEvent :: IORef (Maybe ThreadId) -> IO ThreadId -> Maybe Event -> IO () Source

Interrupt the given thread and re-perform the action.