stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.FileWatch

Synopsis

Documentation

data WatchMode #

Method of watching for changes.

Constructors

WatchModePoll Int

Detect changes by polling the filesystem. Less efficient and may miss fast changes. Not recommended unless you're experiencing problems with WatchModeOS (or WatchModeOS is not supported on your platform).

fileWatch :: HasTerm env => ((Set (Path Abs File) -> IO ()) -> RIO env ()) -> RIO env () Source #

fileWatchPoll :: HasTerm env => ((Set (Path Abs File) -> IO ()) -> RIO env ()) -> RIO env () Source #