1. Stefan Saasen
  2. spy

Commits

Stefan Saasen  committed 73d9669

Use watchTree instead of watchDir

Using watchTree restores the behaviour of recursively watching a directory in
addition to enabling watching just a single file.

  • Participants
  • Parent commits 7b5916a
  • Branches master

Comments (0)

Files changed (1)

File src/Spy/Watcher.hs

View file
 -- | Register for FS events using the given Spy config.
 spy :: Spy -> IO String
 spy config = withManager $ \wm ->
-  watchDir wm (decodeString $ dir config)
+  watchTree wm (decodeString $ dir config)
               (not . skipEvent config)
               (handleEvent config) >>
   getLine