duplo-1.6.19: Frontend development build tool
Development.Duplo.Watcher
Synopsis
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.