| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.File.Follow
Synopsis
- follow :: (MonadIO m, MonadMask m, MonadBaseControl IO m) => INotify -> Path Abs File -> (ConduitT i ByteString m () -> m ()) -> m WatchDescriptor
Documentation
Arguments
| :: (MonadIO m, MonadMask m, MonadBaseControl IO m) | |
| => INotify | |
| -> Path Abs File | |
| -> (ConduitT i ByteString m () -> m ()) | Monadic state of |
| -> m WatchDescriptor |
follow takes a file, and informs you only when it changes. If it's deleted,
| you're notified with an empty ByteString. If it doesn't exist yet, you'll be informed
| of its entire contents upon it's creation, and will proceed to "follow it" as normal.