Hello community, here is the log from the commit of package ghc-path for openSUSE:Factory checked in at 2020-01-03 17:35:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-path (Old) and /work/SRC/openSUSE:Factory/.ghc-path.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-path" Fri Jan 3 17:35:39 2020 rev:16 rq:760292 version:0.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-path/ghc-path.changes 2019-12-27 13:56:10.956739890 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-path.new.6675/ghc-path.changes 2020-01-03 17:35:52.643261569 +0100 @@ -1,0 +2,43 @@ +Mon Dec 30 03:01:20 UTC 2019 - [email protected] + +- Update path to version 0.7.0. + 0.7.0: + * BREAKING CHANGE: "fileExtension" now throws an exception if the file has no + extension. You can use the result as a "Maybe" in pure + code or handle the exception appropriately in any other monad. + * Old extension operations "addFileExtension" and "setFileExtension" have + been deprecated and replaced by "addExtension" and "replaceExtension" + respectively with new behavior. + ADAPTING YOUR CODE TO THIS CHANGE: + * Code that sets an extension not starting with a "." e.g. "foo", must + be changed such that it starts with a "." i.e. ".foo". + * Code that sets multiple extensions in one go e.g. ".tar.gz" must be + changed to set them one at a time instead i.e. add ".tar" first and + then add ".gz". + * Code that sets an extension starting with multiple dots e.g. + "..foo" must be changed such as to make the extra dots part of the + file name instead. + Details: + The new operations "addExtension" and "replaceExtension" accept only "valid" + extension forms which is exactly the same as what "fileExtension" returns. + A valid extension starts with a @.@ followed by one or more characters + not including @.@ followed by zero or more @.@s in trailing position. + This change allows extension operations to be principled following + these laws: + * flip addExtension file >=> fileExtension == return + * (fileExtension >=> flip replaceExtension file) file == return file + * Add splitExtension operation such that: + * uncurry addExtension . swap >=> splitExtension == return + * splitExtension >=> uncurry addExtension . swap == return + * fileExtension == (fmap snd) . splitExtension@ + * Add 'Path.Posix' and 'Path.Windows' modules for manipulating + Windows or Posix style paths independently of the current platform. + * Add 'Lift' instance for 'Path'. + * `Path.Windows` normalizes path separators throughout path, + including immediately following drive letter. + * `Path.Windows` handles UNC (`\\host\share\`) and Unicode (`\\?\C:\`) path + without breaking the double-separator prefix. + * Remove support for old GHC version. The oldest supported version + is 8.2. + +------------------------------------------------------------------- Old: ---- path-0.6.1.tar.gz New: ---- path-0.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-path.spec ++++++ --- /var/tmp/diff_new_pack.qPlZNV/_old 2020-01-03 17:35:54.623262586 +0100 +++ /var/tmp/diff_new_pack.qPlZNV/_new 2020-01-03 17:35:54.623262586 +0100 @@ -19,13 +19,13 @@ %global pkg_name path %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.6.1 +Version: 0.7.0 Release: 0 Summary: Support for well-typed paths License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-deepseq-devel @@ -34,10 +34,12 @@ BuildRequires: ghc-hashable-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-text-devel %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-genvalidity-devel +BuildRequires: ghc-genvalidity-hspec-devel BuildRequires: ghc-genvalidity-property-devel BuildRequires: ghc-hspec-devel BuildRequires: ghc-mtl-devel ++++++ path-0.6.1.tar.gz -> path-0.7.0.tar.gz ++++++ ++++ 2787 lines of diff (skipped) ++++++ path.cabal ++++++ --- /var/tmp/diff_new_pack.qPlZNV/_old 2020-01-03 17:35:54.679262615 +0100 +++ /var/tmp/diff_new_pack.qPlZNV/_new 2020-01-03 17:35:54.683262617 +0100 @@ -1,30 +1,50 @@ name: path -version: 0.6.1 -x-revision: 2 +version: 0.7.0 +x-revision: 1 synopsis: Support for well-typed paths description: Support for well-typed paths. license: BSD3 license-file: LICENSE author: Chris Done <[email protected]> maintainer: Chris Done <[email protected]> -copyright: 2015–2017 FP Complete +copyright: 2015–2018 FP Complete category: System, Filesystem build-type: Simple -cabal-version: >=1.10 -tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1 -extra-source-files: README.md, CHANGELOG +cabal-version: 1.18 +tested-with: GHC==8.2.2, GHC==8.4.4, GHC==8.6.5 +extra-source-files: README.md + , CHANGELOG + , src/Path/Include.hs + +flag dev + description: Turn on development settings. + manual: True + default: False library hs-source-dirs: src - ghc-options: -Wall -O2 - exposed-modules: Path, Path.Internal + exposed-modules: Path + , Path.Internal + , Path.Posix + , Path.Windows build-depends: aeson - , base >= 4.7 && < 5 + , base >= 4.10 && < 5 , deepseq , exceptions >= 0.4 && < 0.11 , filepath < 1.2.0.1 || >= 1.3 , hashable >= 1.2 && < 1.4 + , text , template-haskell + if flag(dev) + ghc-options: -Wall -Werror + else + ghc-options: -O2 -Wall + if flag(dev) + ghc-options: -Wcompat + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wnoncanonical-monad-instances + -Wnoncanonical-monadfail-instances default-language: Haskell2010 test-suite test @@ -32,14 +52,19 @@ main-is: Main.hs other-modules: Posix , Windows + , Common hs-source-dirs: test build-depends: aeson - , base >= 4.7 && < 5 + , base >= 4.10 && < 5 , bytestring , filepath < 1.2.0.1 || >= 1.3 , hspec >= 2.0 && < 3 , mtl >= 2.0 && < 3 , path + if flag(dev) + ghc-options: -Wall -Werror + else + ghc-options: -O2 -Wall default-language: Haskell2010 test-suite validity-test @@ -49,15 +74,16 @@ hs-source-dirs: test build-depends: QuickCheck , aeson - , base >= 4.7 && < 5 + , base >= 4.10 && < 5 , bytestring , filepath < 1.2.0.1 || >= 1.3 - , genvalidity >= 0.3 && < 0.4 - , genvalidity-property >= 0.0 && < 0.1 + , genvalidity >= 0.8 + , genvalidity-property >= 0.4 + , genvalidity-hspec >= 0.7 , hspec >= 2.0 && < 3 , mtl >= 2.0 && < 3 , path - , validity >= 0.3.1.1 && < 0.4 + , validity >= 0.8.0.0 default-language: Haskell2010 ghc-options: -threaded -rtsopts -with-rtsopts=-N
