Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-fmt for openSUSE:Factory checked in at 2021-09-10 23:41:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-fmt (Old) and /work/SRC/openSUSE:Factory/.ghc-fmt.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-fmt" Fri Sep 10 23:41:08 2021 rev:3 rq:917485 version:0.6.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-fmt/ghc-fmt.changes 2021-08-25 20:57:40.177203617 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-fmt.new.1899/ghc-fmt.changes 2021-09-10 23:41:22.654563616 +0200 @@ -1,0 +2,8 @@ +Mon Sep 6 09:35:41 UTC 2021 - [email protected] + +- Update fmt to version 0.6.3.0. + # 0.6.3.0 + + * Add support for `deriving ... via GenericBuildable T` + +------------------------------------------------------------------- Old: ---- fmt-0.6.2.0.tar.gz New: ---- fmt-0.6.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-fmt.spec ++++++ --- /var/tmp/diff_new_pack.y0Q1ZI/_old 2021-09-10 23:41:23.026564012 +0200 +++ /var/tmp/diff_new_pack.y0Q1ZI/_new 2021-09-10 23:41:23.030564017 +0200 @@ -19,7 +19,7 @@ %global pkg_name fmt %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.6.2.0 +Version: 0.6.3.0 Release: 0 Summary: A new formatting library License: BSD-3-Clause ++++++ fmt-0.6.2.0.tar.gz -> fmt-0.6.3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-0.6.2.0/CHANGELOG.md new/fmt-0.6.3.0/CHANGELOG.md --- old/fmt-0.6.2.0/CHANGELOG.md 2021-07-28 14:59:11.000000000 +0200 +++ new/fmt-0.6.3.0/CHANGELOG.md 2021-09-06 10:04:39.000000000 +0200 @@ -1,3 +1,7 @@ +# 0.6.3.0 + +* Add support for `deriving ... via GenericBuildable T` + # 0.6.2.0 * Cleared `hspec` upper bound diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-0.6.2.0/fmt.cabal new/fmt-0.6.3.0/fmt.cabal --- old/fmt-0.6.2.0/fmt.cabal 2021-07-28 14:59:11.000000000 +0200 +++ new/fmt-0.6.3.0/fmt.cabal 2021-09-06 10:04:41.000000000 +0200 @@ -1,5 +1,5 @@ name: fmt -version: 0.6.2.0 +version: 0.6.3.0 synopsis: A new formatting library description: A new formatting library that tries to be simple to understand while still diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-0.6.2.0/lib/Fmt/Internal/Generic.hs new/fmt-0.6.3.0/lib/Fmt/Internal/Generic.hs --- old/fmt-0.6.2.0/lib/Fmt/Internal/Generic.hs 2021-07-28 14:58:19.000000000 +0200 +++ new/fmt-0.6.3.0/lib/Fmt/Internal/Generic.hs 2021-09-06 10:00:09.000000000 +0200 @@ -65,6 +65,27 @@ genericF :: (Generic a, GBuildable (Rep a)) => a -> Builder genericF = gbuild . from +{- | A newtype for deriving a generic 'Buildable' instance for any type +using @DerivingVia@. + +>>> :set -XDerivingVia +>>> :{ +data Bar = Bar { x :: Bool, y :: [Int] } + deriving stock Generic + deriving Buildable via GenericBuildable Bar +:} + +>>> pretty (Bar True [1,2,3]) +Bar: + x: True + y: [1, 2, 3] + +-} +newtype GenericBuildable a = GenericBuildable a + +instance (GBuildable (Rep a), Generic a) => Buildable (GenericBuildable a) where + build (GenericBuildable a) = genericF a + ---------------------------------------------------------------------------- -- GBuildable ---------------------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fmt-0.6.2.0/lib/Fmt.hs new/fmt-0.6.3.0/lib/Fmt.hs --- old/fmt-0.6.2.0/lib/Fmt.hs 2021-07-27 18:14:01.000000000 +0200 +++ new/fmt-0.6.3.0/lib/Fmt.hs 2021-09-06 10:00:09.000000000 +0200 @@ -120,6 +120,7 @@ -- ** Generic formatting genericF, + GenericBuildable(..), ) where
