Accepting request 607734 from devel:languages:haskell

Update ghc-aeson to the latest version.

OBS-URL: https://build.opensuse.org/request/show/607734
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-aeson?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2018-05-30 09:58:37 +00:00 committed by Git OBS Bridge
commit 0541d48e51
5 changed files with 34 additions and 260 deletions

View File

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

3
aeson-1.2.4.0.tar.gz Normal file
View File

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

View File

@ -1,252 +0,0 @@
name: aeson
version: 1.1.2.0
x-revision: 1
license: BSD3
license-file: LICENSE
category: Text, Web, JSON
copyright: (c) 2011-2016 Bryan O'Sullivan
(c) 2011 MailRank, Inc.
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Adam Bergmark <adam@bergmark.nl>
stability: experimental
tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
synopsis: Fast JSON parsing and encoding
cabal-version: >= 1.10
homepage: https://github.com/bos/aeson
bug-reports: https://github.com/bos/aeson/issues
build-type: Simple
description:
A JSON parsing and encoding library optimized for ease of use
and high performance.
.
To get started, see the documentation for the @Data.Aeson@ module
below.
.
Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7),
running 64-bit GHC 7.10.1, for mostly-English tweets from Twitter's
JSON search API:
.
* 6.4 KB payloads, English: 7570 msg\/sec (47.6 MB\/sec)
.
* 14.6 KB payloads, Japanese: 3261 msg\/sec (46.6 MB\/sec)
.
Encoding performance on the same machine and data:
.
* 6.4 KB payloads, English: 22738 msg\/sec (142.9 MB\/sec)
.
* 14.6 KB payloads, Japanese: 15911 msg\/sec (227.4 MB\/sec)
.
(A note on naming: in Greek mythology, Aeson was the father of Jason.)
extra-source-files:
*.yaml
README.markdown
benchmarks/*.cabal
benchmarks/*.hs
benchmarks/*.py
benchmarks/Compare/*.hs
benchmarks/Makefile
benchmarks/Typed/*.hs
benchmarks/json-data/*.json
cbits/*.c
changelog.md
examples/*.cabal
examples/*.hs
examples/Twitter/*.hs
ffi/Data/Aeson/Parser/*.hs
include/*.h
tests/JSONTestSuite/test_parsing/*.json
tests/JSONTestSuite/test_transform/*.json
pure/Data/Aeson/Parser/*.hs
flag developer
description: operate in developer mode
default: False
manual: True
flag fast
description: compile without optimizations
default: False
manual: True
flag bytestring-builder
description: Depend on the bytestring-builder package for backwards compatibility.
default: False
manual: False
flag cffi
description: Controls whether to include c-ffi bits or pure haskell
default: True
manual: True
library
default-language: Haskell2010
hs-source-dirs: .
exposed-modules:
Data.Aeson
Data.Aeson.Encoding
Data.Aeson.Parser
Data.Aeson.Text
Data.Aeson.Types
Data.Aeson.TH
Data.Aeson.Encoding.Internal
Data.Aeson.Internal
Data.Aeson.Internal.Time
-- Deprecated modules
exposed-modules:
Data.Aeson.Encode
other-modules:
Data.Aeson.Encoding.Builder
Data.Aeson.Internal.Functions
Data.Aeson.Parser.Internal
Data.Aeson.Parser.Unescape
Data.Aeson.Parser.Time
Data.Aeson.Types.FromJSON
Data.Aeson.Types.Generic
Data.Aeson.Types.ToJSON
Data.Aeson.Types.Class
Data.Aeson.Types.Internal
build-depends:
attoparsec >= 0.13.0.1,
base >= 4.5 && < 5,
base-compat >= 0.9.1 && < 0.10,
containers >= 0.2.4.1,
deepseq >= 1.3,
dlist >= 0.2,
ghc-prim >= 0.2,
hashable >= 1.1.2.0,
scientific >= 0.3.4.7 && < 0.4,
tagged >=0.8.3 && <0.9,
template-haskell >= 2.7,
text >= 1.1.1.0,
time >= 1.1.1.4,
time-locale-compat >= 0.1.1 && < 0.2,
unordered-containers >= 0.2.5.0,
uuid-types >= 1.0.3 && <1.1,
vector >= 0.8
if flag(bytestring-builder)
build-depends: bytestring >= 0.9 && < 0.10.4,
bytestring-builder >= 0.10.4 && < 1
else
build-depends: bytestring >= 0.10.4
if !impl(ghc >= 8.0)
-- `Data.Semigroup` and `Control.Monad.Fail` and `Control.Monad.IO.Class` are available in base only since GHC 8.0 / base 4.9
build-depends:
semigroups >= 0.18.2 && < 0.19,
transformers >= 0.2.2.0,
transformers-compat >= 0.3,
fail == 4.9.*
if !impl(ghc >= 7.10)
-- `Numeric.Natural` is available in base only since GHC 7.10 / base 4.8
build-depends: nats >= 1 && < 1.2
ghc-options: -Wall
if flag(developer)
ghc-options: -Werror
ghc-prof-options: -auto-all
if flag(fast)
ghc-options: -O0
else
ghc-options: -O2
include-dirs: include
if impl(ghcjs) || !flag(cffi)
hs-source-dirs: pure
other-modules: Data.Aeson.Parser.UnescapePure
else
c-sources: cbits/unescape_string.c
cpp-options: -DCFFI
hs-source-dirs: ffi
other-modules: Data.Aeson.Parser.UnescapeFFI
test-suite tests
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: tests ffi pure
main-is: Tests.hs
c-sources: cbits/unescape_string.c
ghc-options: -Wall -threaded -rtsopts
other-modules:
Data.Aeson.Parser.UnescapeFFI
Data.Aeson.Parser.UnescapePure
DataFamilies.Properties
DataFamilies.Instances
DataFamilies.Encoders
DataFamilies.Types
Encoders
ErrorMessages
Functions
Instances
Options
Properties
SerializationFormatSpec
Types
UnitTests
UnitTests.NullaryConstructors
build-depends:
HUnit,
QuickCheck >= 2.8 && <2.9.3,
aeson,
integer-logarithms >= 1 && <1.1,
attoparsec,
base,
base-compat,
base-orphans >= 0.5.3 && <0.7,
base16-bytestring,
containers,
directory,
dlist,
filepath,
generic-deriving >= 1.10 && < 1.12,
ghc-prim >= 0.2,
hashable >= 1.2.4.0,
scientific,
tagged,
template-haskell,
test-framework,
test-framework-hunit,
test-framework-quickcheck2,
text,
time,
time-locale-compat,
unordered-containers,
uuid-types,
vector,
quickcheck-instances >=0.3.12
if flag(bytestring-builder)
build-depends: bytestring >= 0.9 && < 0.10.4,
bytestring-builder >= 0.10.4 && < 1
else
build-depends: bytestring >= 0.10.4
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.18.2 && < 0.19,
transformers >= 0.2.2.0,
transformers-compat >= 0.3
if !impl(ghc >= 7.10)
build-depends: nats >=1 && <1.2
if impl(ghc >= 7.8)
build-depends: hashable-time >= 0.2 && <0.3
if flag(fast)
ghc-options: -fno-enable-rewrite-rules
source-repository head
type: git
location: git://github.com/bos/aeson.git

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
- Update aeson to version 1.2.4.0.
* Add `Ord` instance for `JSONPathElement`, thanks to Simon Hengel.
* Added `withEmbeddedJSON` to help parse JSON embedded inside a JSON string, thanks to Jesse Kempf.
* Memory usage improvements to the default (pure) parser, thanks to Jonathan Paugh. Also thanks to Neil Mitchell & Oleg Grenrus for contributing a benchmark.
* `omitNothingFields` now works for the `Option` newtype, thanks to Xia Li-yao.
* Some documentation fixes, thanks to Jonathan Paug & Philippe Crama.
* Add `FromJSON` and `ToJSON` instances for
* `DiffTime`, thanks to Víctor López Juan.
* `CTime`, thanks to Daniel Díaz.
* Fix handling of fractions when parsing Natural, thanks to Yuriy Syrovetskiy.
* Change text in error messages for Integral types to make them follow the common pattern, thanks to Yuriy Syrovetskiy.
* Add missing `INCOHERENT` pragma for `RecordToPair`, thanks to Xia Li-yao.
* Everything related to `Options` is now exported from `Data.Aeson`, thanks to Xia Li-yao.
* Optimizations to not escape text in clear cases, thanks to Oleg Grenrus.
* Some documentation fixes, thanks to Phil de Joux & Xia Li-yao.
* Add `parserThrowError` and `parserCatchError` combinators, thanks to Oleg Grenrus.
* Add `Generic` instance for `Value`, thanks to Xia Li-yao.
* Fix a mistake in the 1.2.0.0 changelog, the `cffi` flag is disabled by default! Thanks to dbaynard.
* `tagSingleConstructors`, an option to encode single-constructor types as tagged sums was added to `Options`. It is disabled by default for backward compatibility.
* The `cffi` flag is now turned off (`False`) by default, this means C FFI code is no longer used by default. You can flip the flag to get C implementation.
* The `Options` constructor is no longer exposed to prevent new options from being breaking changes, use `defaultOptions` instead.
* The contents of `GToJSON` and `GToEncoding` are no longer exposed.
* Some INLINE pragmas were removed to avoid GHC running out of simplifier ticks.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc-aeson # spec file for package ghc-aeson
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,14 +19,13 @@
%global pkg_name aeson %global pkg_name aeson
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 1.1.2.0 Version: 1.2.4.0
Release: 0 Release: 0
Summary: Fast JSON parsing and encoding Summary: Fast JSON parsing and encoding
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/Haskell 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
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-base-compat-devel BuildRequires: ghc-base-compat-devel
@ -40,6 +39,7 @@ BuildRequires: ghc-scientific-devel
BuildRequires: ghc-tagged-devel BuildRequires: ghc-tagged-devel
BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-text-devel BuildRequires: ghc-text-devel
BuildRequires: ghc-th-abstraction-devel
BuildRequires: ghc-time-devel BuildRequires: ghc-time-devel
BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-time-locale-compat-devel
BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-unordered-containers-devel
@ -95,7 +95,6 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build %build
%ghc_lib_build %ghc_lib_build
@ -113,7 +112,7 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%ghc_pkg_recache %ghc_pkg_recache
%files -f %{name}.files %files -f %{name}.files
%doc LICENSE %license LICENSE
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
%doc README.markdown changelog.md examples %doc README.markdown changelog.md examples