packages feed

streamly-fsnotify 2.1.0.3 → 2.1.1

raw patch · 3 files changed

+8/−9 lines, 3 filesdep ~filepathdep ~semiringsdep ~timePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: filepath, semirings, time

API changes (from Hackage documentation)

- Streamly.FSNotify: watchDir :: forall (m :: Type -> Type). (MonadAsync m, MonadCatch m) => FilePath -> Stream m Event
+ Streamly.FSNotify: watchDir :: (MonadAsync m, MonadCatch m) => FilePath -> Stream m Event
- Streamly.FSNotify: watchTree :: forall (m :: Type -> Type). (MonadAsync m, MonadCatch m) => FilePath -> Stream m Event
+ Streamly.FSNotify: watchTree :: (MonadAsync m, MonadCatch m) => FilePath -> Stream m Event

Files

README.md view
@@ -1,3 +1,1 @@-This library provides a higher-level, stream-based API for [`fsnotify`](https://hackage.haskell.org/package/fsnotify). It should work anywhere both `streamly` and `fsnotify` do. Note that there's no need for your project to register a dependency on `fsnotify` directly, since we re-export the two types you'll need. You will however need to depend on `streamly` in order to get anything done.--See also [`streamly-fsevents`](https://hackage.haskell.org/package/streamly-fsevents), which is developed by the Streamly authors, and implements its own file-watching logic instead of sitting on top of `fsnotify`.+This library provides a higher-level, stream-based API for [`fsnotify`](https://hackage.haskell.org/package/fsnotify). It should work anywhere both `streamly` and `fsnotify` do. Note that there's no need for your project to register a dependency on `fsnotify` directly, but you will need to depend on `streamly` in order to get anything done.
src/Streamly/FSNotify.hs view
@@ -5,7 +5,7 @@ C source files (which we take to be anything with a @.c@ extension). This program then writes that the event occurred, to what file, and when, forever. -> {\-# LANGUAGE GHC2021, BlockArguments, LambdaCase #-\}+> {-# LANGUAGE GHC2021, BlockArguments, LambdaCase #-} > > import Streamly.Data.Fold qualified as SF > import Streamly.Data.Stream.Prelude qualified as SP@@ -18,7 +18,7 @@ >     "c" `isExtensionOf` eventPath e && eventIsDirectory e == IsFile > > srcPath :: FilePath-> srcPath = "/" </> "home" </> "georgefst" </> "c-project"+> srcPath = "/" </> "home" </> "gthomas" </> "c-project" > > main :: IO () > main = SP.fold (SF.drainMapM go) $ watchTree srcPath
streamly-fsnotify.cabal view
@@ -1,9 +1,10 @@ cabal-version:       3.0 name:                streamly-fsnotify-version:             2.1.0.3+version:             2.1.1 synopsis:            Folder watching as a Streamly stream. description:     Provides Streamly streams for both single-level and recursive folder watching.+    Also contains a principled and compositional system for filtering file system events. homepage:            https://github.com/georgefst/streamly-fsnotify license:             BSD-3-Clause license-file:        LICENSE@@ -20,13 +21,13 @@     build-depends:         base >= 4.9 && < 5,         exceptions ^>= 0.10,-        filepath ^>= {1.4.2.1, 1.5},+        filepath ^>= 1.4.2.1,         fsnotify ^>= 0.4,-        semirings ^>= {0.5.2, 0.6, 0.7},+        semirings ^>= {0.5.2, 0.6},         streamly ^>= {0.9, 0.10},         streamly-core ^>= 0.2,         text ^>= {1.2.3.0, 2.0, 2.1},-        time ^>= {1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.14},+        time ^>= {1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12},     hs-source-dirs: src     default-language: GHC2021     ghc-options: -Wall