osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-generic-deriving revision:6, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-generic-deriving?expand=0&rev=57
This commit is contained in:
parent
a26b0d11ca
commit
8f9941c5a3
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e9b53a40eae58e18ee281858a1ba400f14128d5779858272b01c10d64aa09abe
|
||||
size 68256
|
3
generic-deriving-1.14.tar.gz
Normal file
3
generic-deriving-1.14.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d0abd5e423960b66867c6149c20b221b1351e3805d1bf787fc4efa3e7bb7cb02
|
||||
size 69658
|
@ -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 <psimons@suse.com>
|
||||
|
||||
|
@ -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
|
||||
<http://www.haskell.org/haskellwiki/GHC.Generics> 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 '<http://hackage.haskell.org/package/generic-data
|
||||
generic-data>' 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}
|
||||
|
Loading…
Reference in New Issue
Block a user