From 5c6e14d4b77226504f885e2595a0b6aa44e795637abff689190ea124ee3f0d82 Mon Sep 17 00:00:00 2001 From: Peter Trommler Date: Mon, 4 May 2015 18:22:07 +0000 Subject: [PATCH] Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7 --- attoparsec-0.10.4.0.tar.gz | 3 --- attoparsec-0.12.1.6.tar.gz | 3 +++ ghc-attoparsec.changes | 46 ++++++++++++++++++++++++++++++++++++++ ghc-attoparsec.spec | 21 ++++++++++++++--- 4 files changed, 67 insertions(+), 6 deletions(-) delete mode 100644 attoparsec-0.10.4.0.tar.gz create mode 100644 attoparsec-0.12.1.6.tar.gz diff --git a/attoparsec-0.10.4.0.tar.gz b/attoparsec-0.10.4.0.tar.gz deleted file mode 100644 index 3f322b3..0000000 --- a/attoparsec-0.10.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6b84e0dbd1c3beec1dedea578ac2f4d62afbe66b383582b7b3349406866d346 -size 36268 diff --git a/attoparsec-0.12.1.6.tar.gz b/attoparsec-0.12.1.6.tar.gz new file mode 100644 index 0000000..27219ef --- /dev/null +++ b/attoparsec-0.12.1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce0bb68c3a232dc981412b44211395ee04b0c18075777c30493d4e0f1edc06a8 +size 65300 diff --git a/ghc-attoparsec.changes b/ghc-attoparsec.changes index aa3ecb9..fd3de38 100644 --- a/ghc-attoparsec.changes +++ b/ghc-attoparsec.changes @@ -1,3 +1,49 @@ +------------------------------------------------------------------- +Mon Apr 13 07:52:32 UTC 2015 - mimi.vx@gmail.com + +- update to 0.12.1.6 +* Fixed a case folding bug in the ByteString version of stringCI. +* Fixed an indexing bug in the new Text implementation of string, + reported by Michel Boucey. +* Fixed a case where the string parser would consume an unnecessary + amount of input before failing a match, when it could bail much + earlier (https://github.com/bos/attoparsec/issues/97) +* Added more context to error messages + (https://github.com/bos/attoparsec/pull/79) +* Fixed incorrect tracking of Text lengths + (https://github.com/bos/attoparsec/issues/80) +* Fixed the incorrect tracking of capacity if the initial buffer was + empty (https://github.com/bos/attoparsec/issues/75) +* Fixed a data corruption bug that occurred under some circumstances + if a buffer grew after prompting for more input + (https://github.com/bos/attoparsec/issues/74) +* Now compatible with GHC 7.9 +* Reintroduced the Chunk class, used by the parsers package +* A new internal representation makes almost all real-world parsers + faster, sometimes by big margins. For example, parsing JSON data + with aeson is now up to 70% faster. These performance improvements + also come with reduced memory consumption and some new capabilities. +* The new match combinator gives both the result of a parse and the + input that it matched. +* The test suite has doubled in size. This made it possible to switch + to the new internal representation with a decent degree of + confidence that everything was more or less working. +* The benchmark suite now contains a small family of benchmarks taken + from real-world uses of attoparsec. +* A few types that ought to have been private now are. +* A few obsolete modules and functions have been marked as deprecated. + They will be removed from the next major release. +* New function scientific is compatible with rational, but parses + integers more efficiently (https://github.com/bos/aeson/issues/198) +* The new Chunk typeclass allows for some code sharing with Ed + Kmett's parsers package: http://hackage.haskell.org/package/parsers +* New function runScanner generalises scan to return the final state + of the scanner as well as the input consumed. +* New dependency: the scientific package. This allows us to parse + numbers much more efficiently. +* peekWord8', peekChar': new primitive parsers that allow + single-character lookahead. + ------------------------------------------------------------------- Tue Sep 2 08:34:11 UTC 2014 - peter.trommler@ohm-hochschule.de diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec index 4533eb3..7c9e26c 100644 --- a/ghc-attoparsec.spec +++ b/ghc-attoparsec.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-attoparsec # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,8 +18,10 @@ %global pkg_name attoparsec -Name: ghc-attoparsec -Version: 0.10.4.0 +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.12.1.6 Release: 0 Summary: Fast combinator parsing for bytestrings and text License: BSD-3-Clause @@ -36,7 +38,15 @@ BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-scientific-devel BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-quickcheck-unicode-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-vector-devel +%endif # End cabal-rpm deps %description @@ -66,6 +76,11 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + %post devel %ghc_pkg_recache