Hello community, here is the log from the commit of package ghc-parser-combinators for openSUSE:Factory checked in at 2019-04-28 20:13:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-parser-combinators (Old) and /work/SRC/openSUSE:Factory/.ghc-parser-combinators.new.5536 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-parser-combinators" Sun Apr 28 20:13:13 2019 rev:4 rq:698555 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-parser-combinators/ghc-parser-combinators.changes 2019-01-25 22:43:25.063224326 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-parser-combinators.new.5536/ghc-parser-combinators.changes 2019-04-28 20:13:16.910424876 +0200 @@ -1,0 +2,11 @@ +Sat Apr 6 02:02:45 UTC 2019 - psim...@suse.com + +- Update parser-combinators to version 1.0.2. + ## Parser combinators 1.0.2 + + * Defined `liftA2` for `Permutation` manually. The new definition should be + more efficient. + + * Made inner `Maybe` field in `Permutation` strict. + +------------------------------------------------------------------- Old: ---- parser-combinators-1.0.1.tar.gz New: ---- parser-combinators-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-parser-combinators.spec ++++++ --- /var/tmp/diff_new_pack.czt91U/_old 2019-04-28 20:13:17.842424297 +0200 +++ /var/tmp/diff_new_pack.czt91U/_new 2019-04-28 20:13:17.846424294 +0200 @@ -18,7 +18,7 @@ %global pkg_name parser-combinators Name: ghc-%{pkg_name} -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: Lightweight package providing commonly useful parser combinators License: BSD-3-Clause ++++++ parser-combinators-1.0.1.tar.gz -> parser-combinators-1.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parser-combinators-1.0.1/CHANGELOG.md new/parser-combinators-1.0.2/CHANGELOG.md --- old/parser-combinators-1.0.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/parser-combinators-1.0.2/CHANGELOG.md 2019-04-05 21:22:07.000000000 +0200 @@ -1,3 +1,10 @@ +## Parser combinators 1.0.2 + +* Defined `liftA2` for `Permutation` manually. The new definition should be + more efficient. + +* Made inner `Maybe` field in `Permutation` strict. + ## Parser combinators 1.0.1 * Cosmetic changes in the source code. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parser-combinators-1.0.1/Control/Applicative/Permutations.hs new/parser-combinators-1.0.2/Control/Applicative/Permutations.hs --- old/parser-combinators-1.0.1/Control/Applicative/Permutations.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/parser-combinators-1.0.2/Control/Applicative/Permutations.hs 2019-04-05 21:22:07.000000000 +0200 @@ -40,6 +40,8 @@ -- -- @since 0.2.0 +{-# LANGUAGE CPP #-} + module Control.Applicative.Permutations ( -- ** Permutation type Permutation @@ -55,7 +57,7 @@ -- | An 'Applicative' wrapper-type for constructing permutation parsers. -data Permutation m a = P (Maybe a) (m (Permutation m a)) +data Permutation m a = P !(Maybe a) (m (Permutation m a)) instance Functor m => Functor (Permutation m) where fmap f (P v p) = P (f <$> v) (fmap f <$> p) @@ -66,6 +68,12 @@ where lhsAlt = (<*> rhs) <$> v rhsAlt = (lhs <*>) <$> w +#if MIN_VERSION_base(4,10,0) + liftA2 f lhs@(P x v) rhs@(P y w) = P (liftA2 f x y) (lhsAlt <|> rhsAlt) + where + lhsAlt = (\p -> liftA2 f p rhs) <$> v + rhsAlt = liftA2 f lhs <$> w +#endif -- | \"Unlifts\" a permutation parser into a parser to be evaluated. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parser-combinators-1.0.1/parser-combinators.cabal new/parser-combinators-1.0.2/parser-combinators.cabal --- old/parser-combinators-1.0.1/parser-combinators.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/parser-combinators-1.0.2/parser-combinators.cabal 2019-04-05 21:22:07.000000000 +0200 @@ -1,7 +1,7 @@ name: parser-combinators -version: 1.0.1 +version: 1.0.2 cabal-version: 1.18 -tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.3 +tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.4 license: BSD3 license-file: LICENSE.md author: Mark Karpov <markkarpo...@gmail.com>