stack-2.9.3: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 :: (HasLogFunc env, HasTerm env) => ((Set (Path Abs File) -> IO ()) -> RIO env ()) -> RIO env () Source #

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