packages feed

gitignore-ospath 0.1.0 → 0.1.0.1

raw patch · 2 files changed

+8/−8 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

gitignore-ospath.cabal view
@@ -1,10 +1,10 @@ cabal-version:      3.0 name:               gitignore-ospath-version:            0.1.0-synopsis:           A compact Haskell library for reading `.gitignore` files and filtering paths.-description:        A compact Haskell library for reading `.gitignore` files and filtering paths.+version:            0.1.0.1+synopsis:           Library for reading .gitignore files and filtering paths.+description:        Library for reading .gitignore files and filtering paths.                     .-                    The library works with `.gitignore`-like formats (e.g., `.dockerignore`) and uses+                    The library works with .gitignore-like formats (e.g., .dockerignore) and uses                     'System.OsPath.OsPath' for path handling. Parsing and filtering rules follow the                     Git documentation. homepage:           https://github.com/federicotdn/gitignore-ospath
src/Ignore/Internal.hs view
@@ -43,7 +43,7 @@  -- | The parsed contents of a gitignore file. ----- Multiple 'Ignore' values can be combined using '<>' to merge their patterns.+-- Multiple t'Ignore' values can be combined using '<>' to merge their patterns. -- This is useful for combining patterns from multiple gitignore files (e.g., -- a global gitignore and a repository-specific one). Later patterns take -- precedence when determining if a path should be ignored.@@ -175,7 +175,7 @@                 pAnchored = anchored               } --- | Parse a complete gitignore file content into an 'Ignore' collection.+-- | Parse a complete gitignore file content into an t'Ignore' collection. -- -- Strips whitespace, removes comments (lines starting with @#@), and parses -- each remaining line as a pattern.@@ -263,13 +263,13 @@ ignoresInner (Ignore patterns) splitPath dir =   last $ False : mapMaybe (\pat -> patternIgnores pat splitPath dir) patterns --- | Check if an 'Ignore' collection ignores the given path.+-- | Check if an t'Ignore' collection ignores the given path. -- -- The third parameter indicates whether the path is a directory. ignores :: Ignore -> OsPath -> Bool -> Bool ignores ign path = ignoresInner ign (splitDirectories path) --- | Check if an 'Ignore' collection ignores the given pre-split path.+-- | Check if an t'Ignore' collection ignores the given pre-split path. -- -- Like 'ignores', but takes a path already split into components. The third -- parameter indicates whether the path is a directory.