Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Tools.Daemon.Watch
Description
Controls the file system watching in the daemon. The file system watching must run in a separate process to prevent blocking because of file operations interfering with watch.
Documentation
createWatchProcess' :: Maybe FilePath -> Session -> MVar DaemonSessionState -> MVar [Marker] -> (ResponseMsg -> IO ()) -> IO (Maybe WatchProcess, [ThreadId]) Source #
Starts the watch process and a thread that receives notifications from it. The notification thread will invoke updates on the daemon state to re-load files.