From 523ad43e8d1a9ae7b80954647924f97c8f6ad44b91038c73bc95471ac50f1f1a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 15 May 2018 18:23:14 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-Glob revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-Glob?expand=0&rev=33 --- ghc-Glob.changes | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/ghc-Glob.changes b/ghc-Glob.changes index 9dc7b9c..6aa119d 100644 --- a/ghc-Glob.changes +++ b/ghc-Glob.changes @@ -1,3 +1,63 @@ +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update Glob to version 0.9.2. + + Made Tests.Utils use Ints instead of Floats to avoid spurious failures + that aren't of any concern. + + New functions, data types, and constants: + System.FilePath.Glob.isLiteral :: Pattern -> Bool + Tells whether a Pattern is a literal file path. + + Thanks to Simon Hengel and Harry Garrood for the + feature request. + + System.FilePath.Glob.GlobOptions + Options for the glob* family of IO functions. + + System.FilePath.Glob.globDefault :: GlobOptions + Use matchDefault and don't return unmatched files. + + Changed function types: + System.FilePath.Glob.globDir :: [Pattern] -> FilePath -> IO [[FilePath]] + No longer returns unmatched paths, like globDir1. + + System.FilePath.Glob.globDirWith :: GlobOptions -> [Pattern] -> FilePath -> IO ([[FilePath]], Maybe [FilePath]) + Takes GlobOptions instead of MatchOptions, and returns + unmatched paths in a Maybe corresponding to whether they + were requested in the options or not. + + This is a significant performance boost for all glob* + functions when unmatched file paths are not desired. + + Optimization: when unmatched file paths are not requested, glob and + globDir1 use commonDirectory to avoid extra + getDirectoryContents calls at the start. + Optimization: character ranges containing . or / are simplified more + than before, especially when they make the entire pattern + incapable of matching anything. + Optimization: extension separator matching where the extension is + surrounded by other literals (e.g. "*.txt" or "foo.*" or + simply "foo.txt") should be quicker in general, and the + Patterns should be smaller. (This adds to the number of + places where the code assumes that the extension separator + is the '.' character.) + + Bug fix: commonDirectory should no longer add extra directory separators + to the Pattern. + Bug fix: the glob* functions should now place slashes correctly when + using recursively matching patterns with extra slashes, such as + "**//foo". + Bug fix: number ranges are no longer optimized to single characters, so + that leading zeroes are handled correctly: e.g. "<0-9>" didn't + match "007". + Bug fix: "//" did not match itself. + Bug fix: ".//" did not match itself. + Bug fix: "x" did not match ".//x" (with ignoreDotSlash enabled). + Bug fix: "<-><->" matched single digit numbers. + Bug fix: "<0-0><1-1>" didn't match "01". + ------------------------------------------------------------------- Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com