Hello community, here is the log from the commit of package ghc-asn1-parse for openSUSE:Factory checked in at 2019-10-18 14:33:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-asn1-parse (Old) and /work/SRC/openSUSE:Factory/.ghc-asn1-parse.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-asn1-parse" Fri Oct 18 14:33:43 2019 rev:8 rq:737191 version:0.9.5 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-asn1-parse/ghc-asn1-parse.changes 2018-10-25 08:22:24.615909590 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-asn1-parse.new.2352/ghc-asn1-parse.changes 2019-10-18 14:33:44.564191063 +0200 @@ -1,0 +2,6 @@ +Mon Sep 30 02:01:28 UTC 2019 - [email protected] + +- Update asn1-parse to version 0.9.5. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- asn1-parse-0.9.4.tar.gz New: ---- asn1-parse-0.9.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-asn1-parse.spec ++++++ --- /var/tmp/diff_new_pack.uASQbf/_old 2019-10-18 14:33:45.308189126 +0200 +++ /var/tmp/diff_new_pack.uASQbf/_new 2019-10-18 14:33:45.308189126 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-asn1-parse # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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,7 +18,7 @@ %global pkg_name asn1-parse Name: ghc-%{pkg_name} -Version: 0.9.4 +Version: 0.9.5 Release: 0 Summary: Simple monadic parser for ASN1 stream types License: BSD-3-Clause ++++++ asn1-parse-0.9.4.tar.gz -> asn1-parse-0.9.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-parse-0.9.4/Data/ASN1/Parse.hs new/asn1-parse-0.9.5/Data/ASN1/Parse.hs --- old/asn1-parse-0.9.4/Data/ASN1/Parse.hs 2015-09-21 22:30:42.000000000 +0200 +++ new/asn1-parse-0.9.5/Data/ASN1/Parse.hs 2019-06-23 15:18:23.000000000 +0200 @@ -7,6 +7,7 @@ -- -- A parser combinator for ASN1 Stream. {-# LANGUAGE GeneralizedNewtypeDeriving #-} +{-# LANGUAGE CPP #-} module Data.ASN1.Parse ( ParseASN1 -- * run @@ -30,6 +31,9 @@ import Control.Applicative import Control.Arrow (first) import Control.Monad (liftM2) +#if MIN_VERSION_base(4,9,0) +import Control.Monad.Fail +#endif newtype ParseASN1 a = P { runP :: [ASN1] -> Either String (a, [ASN1]) } @@ -50,6 +54,16 @@ case runP m1 s of Left err -> Left err Right (a, s2) -> runP (m2 a) s2 +instance Alternative ParseASN1 where + empty = P $ \_ -> Left "empty Alternative" + (<|>) m1 m2 = P $ \s -> + case runP m1 s of + Left _ -> runP m2 s + Right (a, s2) -> Right (a, s2) +#if MIN_VERSION_base(4,9,0) +instance MonadFail ParseASN1 where + fail = throwParseError +#endif get :: ParseASN1 [ASN1] get = P $ \stream -> Right (stream, stream) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-parse-0.9.4/asn1-parse.cabal new/asn1-parse-0.9.5/asn1-parse.cabal --- old/asn1-parse-0.9.4/asn1-parse.cabal 2015-09-21 22:30:42.000000000 +0200 +++ new/asn1-parse-0.9.5/asn1-parse.cabal 2019-09-29 21:06:27.000000000 +0200 @@ -1,5 +1,5 @@ Name: asn1-parse -Version: 0.9.4 +Version: 0.9.5 Description: Simple monadic parser for ASN1 stream types, when ASN1 pattern matching is not convenient. License: BSD3 License-file: LICENSE @@ -24,3 +24,4 @@ source-repository head type: git location: https://github.com/vincenthz/hs-asn1 + subdir: parse
