diff --git a/generic-deriving-1.13.1.tar.gz b/generic-deriving-1.13.1.tar.gz deleted file mode 100644 index 0f32e31..0000000 --- a/generic-deriving-1.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e9b53a40eae58e18ee281858a1ba400f14128d5779858272b01c10d64aa09abe -size 68256 diff --git a/generic-deriving-1.14.tar.gz b/generic-deriving-1.14.tar.gz new file mode 100644 index 0000000..60f8fbf --- /dev/null +++ b/generic-deriving-1.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0abd5e423960b66867c6149c20b221b1351e3805d1bf787fc4efa3e7bb7cb02 +size 69658 diff --git a/ghc-generic-deriving.changes b/ghc-generic-deriving.changes index 9c23490..77a04b6 100644 --- a/ghc-generic-deriving.changes +++ b/ghc-generic-deriving.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Oct 6 08:55:51 UTC 2020 - psimons@suse.com + +- Update generic-deriving to version 1.14. + # 1.14 [2020.09.30] + * Remove instances for `Data.Semigroup.Option`, which is deprecated as of + `base-4.15.0.0`. + * Allow building with `template-haskell-2.17.0.0` (GHC 9.0). + * Fix a bug in which `deriveAll1` would needlessly reject data types whose last + type parameter appears as an oversaturated argument to a type family. + ------------------------------------------------------------------- Fri Sep 4 10:49:28 UTC 2020 - Peter Simons diff --git a/ghc-generic-deriving.spec b/ghc-generic-deriving.spec index 22f344f..1503fac 100644 --- a/ghc-generic-deriving.spec +++ b/ghc-generic-deriving.spec @@ -19,7 +19,7 @@ %global pkg_name generic-deriving %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.13.1 +Version: 1.14 Release: 0 Summary: Generic programming library for generalised deriving License: BSD-3-Clause @@ -45,6 +45,48 @@ The current implementation integrates with the new GHC Generics. See for more information. Template Haskell code is provided for supporting older GHCs. +This library is organized as follows: + +* "Generics.Deriving.Base" defines the core functionality for GHC generics, +including the 'Generic(1)' classes and representation data types. On modern +versions of GHC, this simply re-exports "GHC.Generics" from 'base'. On older +versions of GHC, this module backports parts of "GHC.Generics" that were not +included at the time, including 'Generic(1)' instances. + +* "Generics.Deriving.TH" implements Template Haskell functionality for deriving +instances of 'Generic(1)'. + +* Educational code: in order to provide examples of how to define and use +"GHC.Generics"-based defaults, this library offers a number of modules which +define examples of type classes along with default implementations for the +classes' methods. Currently, the following modules are provided: +"Generics.Deriving.Copoint", "Generics.Deriving.ConNames", +"Generics.Deriving.Enum", "Generics.Deriving.Eq", "Generics.Deriving.Foldable", +"Generics.Deriving.Functor", "Generics.Deriving.Monoid", +"Generics.Deriving.Semigroup", "Generics.Deriving.Show", +"Generics.Deriving.Traversable", and "Generics.Deriving.Uniplate". + +It is worth emphasizing that these modules are primarly intended for +educational purposes. Many of the classes in these modules resemble other +commonly used classes—for example, 'GShow' from "Generics.Deriving.Show" +resembles 'Show' from 'base'—but in general, the classes that +'generic-deriving' defines are not drop-in replacements. Moreover, the generic +defaults that 'generic-deriving' provide often make simplifying assumptions +that may violate expectations of how these classes might work elsewhere. +For example, the generic default for 'GShow' does not behave exactly like +'deriving Show' would. + +If you are seeking "GHC.Generics"-based defaults for type classes in 'base', +consider using the '' library. + +* "Generics.Deriving.Default" provides newtypes that allow leveraging the +generic defaults in this library using the 'DerivingVia' GHC language +extension. + +* "Generics.Deriving" re-exports "Generics.Deriving.Base", +"Generics.Deriving.Default", and a selection of educational modules. + %package devel Summary: Haskell %{pkg_name} library development files Requires: %{name} = %{version}-%{release}