Accepting request 759465 from devel:languages:haskell
version update OBS-URL: https://build.opensuse.org/request/show/759465 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-pandoc-types?expand=0&rev=26
This commit is contained in:
commit
09a432bf66
@ -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
|
Wed Sep 25 02:02:22 UTC 2019 - psimons@suse.com
|
||||||
|
|
||||||
|
@ -19,11 +19,10 @@
|
|||||||
%global pkg_name pandoc-types
|
%global pkg_name pandoc-types
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 1.17.6.1
|
Version: 1.20
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Types for representing a structured document
|
Summary: Types for representing a structured document
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: Development/Libraries/Haskell
|
|
||||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
@ -34,6 +33,7 @@ BuildRequires: ghc-containers-devel
|
|||||||
BuildRequires: ghc-deepseq-devel
|
BuildRequires: ghc-deepseq-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRequires: ghc-syb-devel
|
BuildRequires: ghc-syb-devel
|
||||||
|
BuildRequires: ghc-text-devel
|
||||||
BuildRequires: ghc-transformers-devel
|
BuildRequires: ghc-transformers-devel
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: ghc-HUnit-devel
|
BuildRequires: ghc-HUnit-devel
|
||||||
@ -64,7 +64,6 @@ Pandoc documents.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library development files
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Group: Development/Libraries/Haskell
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
Requires(post): ghc-compiler = %{ghc_version}
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
@ -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
3
pandoc-types-1.20.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:aac716bcf493e0cd53428fa8cd892fdd7af3a6184145c25543bf6fe8b94fe873
|
||||||
|
size 29505
|
Loading…
Reference in New Issue
Block a user