osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-pandoc-types revision:18, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-pandoc-types?expand=0&rev=79
This commit is contained in:
Peter Simons 2019-12-24 02:03:25 +00:00 committed by Git OBS Bridge
parent 894c3cf45f
commit aa8010994d
4 changed files with 68 additions and 4 deletions

View File

@ -1,3 +1,66 @@
-------------------------------------------------------------------
Wed Nov 13 03:02:28 UTC 2019 - psimons@suse.com
- Update pandoc-types to version 1.20.
[1.20]
* Change all uses of String in type definitions to strict Text
(Christian Despres) [API change]. The MetaValue instances using String
have been kept, and parallel ones using Text were added.
* Remove the Arbitrary Text orphan instance (Christian Despres).
This instance should not have been in the Text.Pandoc.Arbitrary, since
it would have been exported with the rest of the instances in that
module. Instead, more shrink* functions were added to compensate for
the absence of this instance.
* Add Text.Pandoc.Legacy.Definition (Christian Despres).
To ease the transition to Text, this module provides an interface
compatible with the String one, so that any unqualified imports of
Text.Pandoc.Definition in other packages can be replaced by
Text.Pandoc.Legacy.Definition without other code changes. This is done
with PatternSynonyms.
Some of the constructors of the types Meta, MetaValue, Block, Inline,
Format, and Citation required PatternSynonym handling. The Attr and
Target types had to be redefined, and certain functions had to be
rewritten to handle String or the old Attr and Target types in this
module. This module otherwise exports the definitions in
Text.Pandoc.Definition unchanged.
This is not a perfect drop-in replacement, since some imports like
Inline(..) will no longer work. This may also cause incomplete pattern
warnings when used, since the coverage checker does not seem to be
aware of PatternSynonyms.
* Add Text.Pandoc.Legacy.Builder (Christian Despres).
Like Text.Pandoc.Legacy.Definition, this modules provides a
compatibility interface while the transition to Text takes
place. Unlike that module, this module only requires redefining the
ToMetaValue and HasMeta classes and a few functions so that they use
the old types. No PatternSynonyms are required.
* Change Semigroup/Monoid instance for Meta.
Previously `<>` was left-biased, so if meta1 and meta2 both
contained a field 'foo', the value from meta1 would be retained
in `meta1 <> meta2`, and the value from meta2 ignored.
This is counterintuitive and doesn't work well with pandoc;
for example, we want to be able to override a value in an
earlier `--metadata-file` with a later one on the command line.
It also makes the behavior of metadata more like other
things (such as reference links, where later definitions
take precedence over earlier ones).
Note that this change may break some current workflows,
if one is relying on metadata fields that occur later in
a document to be overridden by those occurring earlier.
-------------------------------------------------------------------
Fri Nov 8 16:14:21 UTC 2019 - Peter Simons <psimons@suse.com>
- Drop obsolete group attributes.
-------------------------------------------------------------------
Wed Sep 25 02:02:22 UTC 2019 - psimons@suse.com

View File

@ -19,7 +19,7 @@
%global pkg_name pandoc-types
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.17.6.1
Version: 1.20
Release: 0
Summary: Types for representing a structured document
License: GPL-2.0-only
@ -33,6 +33,7 @@ BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-syb-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-devel
%if %{with tests}
BuildRequires: ghc-HUnit-devel

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1834c2064918a21d346f399c4abcd424617a9a4f0f1e1a8e8ab9b590127edeb4
size 26363

3
pandoc-types-1.20.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aac716bcf493e0cd53428fa8cd892fdd7af3a6184145c25543bf6fe8b94fe873
size 29505