Hello community,

here is the log from the commit of package ghc-tagsoup for openSUSE:Factory 
checked in at 2017-03-20 17:07:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-tagsoup (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-tagsoup.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-tagsoup"

Mon Mar 20 17:07:56 2017 rev:12 rq:477466 version:0.14.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-tagsoup/ghc-tagsoup.changes  2016-10-18 
10:39:13.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tagsoup.new/ghc-tagsoup.changes     
2017-03-20 17:07:57.523459882 +0100
@@ -1,0 +2,5 @@
+Mon Feb 27 10:12:21 UTC 2017 - psim...@suse.com
+
+- Update to version 0.14.1 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  tagsoup-0.14.tar.gz

New:
----
  tagsoup-0.14.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-tagsoup.spec ++++++
--- /var/tmp/diff_new_pack.lslDUL/_old  2017-03-20 17:07:58.615305713 +0100
+++ /var/tmp/diff_new_pack.lslDUL/_new  2017-03-20 17:07:58.615305713 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-tagsoup
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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 tagsoup
 Name:           ghc-%{pkg_name}
-Version:        0.14
+Version:        0.14.1
 Release:        0
 Summary:        Parsing and extracting information from (possibly malformed) 
HTML/XML documents
 License:        BSD-3-Clause
@@ -72,6 +72,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc CHANGES.txt README.md
 
 %changelog

++++++ tagsoup-0.14.tar.gz -> tagsoup-0.14.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tagsoup-0.14/CHANGES.txt 
new/tagsoup-0.14.1/CHANGES.txt
--- old/tagsoup-0.14/CHANGES.txt        2016-06-11 21:50:21.000000000 +0200
+++ new/tagsoup-0.14.1/CHANGES.txt      2017-02-25 18:25:48.000000000 +0100
@@ -1,5 +1,7 @@
 Changelog for TagSoup
 
+0.14.1
+    #63, add maybeAttrib
 0.14
     #14, eliminate Text.HTML.Download
 0.13.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tagsoup-0.14/LICENSE new/tagsoup-0.14.1/LICENSE
--- old/tagsoup-0.14/LICENSE    2016-06-11 21:50:21.000000000 +0200
+++ new/tagsoup-0.14.1/LICENSE  2017-02-25 18:25:48.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright Neil Mitchell 2006-2016.
+Copyright Neil Mitchell 2006-2017.
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tagsoup-0.14/README.md new/tagsoup-0.14.1/README.md
--- old/tagsoup-0.14/README.md  2016-06-11 21:50:21.000000000 +0200
+++ new/tagsoup-0.14.1/README.md        2017-02-25 18:25:48.000000000 +0100
@@ -256,6 +256,7 @@
 * [TagSoup for Java](http://tagsoup.info/) - an independently written 
malformed HTML parser for Java. Including [links to 
other](http://tagsoup.info/#other) HTML parsers.
 * [HXT: Haskell XML Toolbox](http://www.fh-wedel.de/~si/HXmlToolbox/) - a more 
comprehensive XML parser, giving the option of using TagSoup as a lexer.
 * [Other Related Work](http://www.fh-wedel.de/~si/HXmlToolbox/#rel) - as 
described on the HXT pages.
-* [Using TagSoup with Parsec](http://therning.org/magnus/archives/367) - a 
nice combination of Haskell libraries.
-* [tagsoup-parsec](http://hackage.haskell.org/packages/tagsoup-parsec) - a 
library for easily using TagSoup as a token type in Parsec.
+* [Using TagSoup with 
Parsec](http://therning.org/magnus/posts/2008-08-08-367-tagsoup-meet-parsec.html)
 - a nice combination of Haskell libraries.
+* [tagsoup-parsec](http://hackage.haskell.org/package/tagsoup-parsec) - a 
library for easily using TagSoup as a token type in Parsec.
+* [tagsoup-megaparsec](http://hackage.haskell.org/package/tagsoup-megaparsec) 
- a library for easily using TagSoup as a token type in Megaparsec.
 * 
[WraXML](http://hackage.haskell.org/packages/archive/wraxml/latest/doc/html/Text-XML-WraXML-Tree-TagSoup.html)
 - construct a lazy tree from TagSoup lexemes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tagsoup-0.14/Text/HTML/TagSoup/Type.hs 
new/tagsoup-0.14.1/Text/HTML/TagSoup/Type.hs
--- old/tagsoup-0.14/Text/HTML/TagSoup/Type.hs  2016-06-11 21:50:21.000000000 
+0200
+++ new/tagsoup-0.14.1/Text/HTML/TagSoup/Type.hs        2017-02-25 
18:25:48.000000000 +0100
@@ -115,10 +115,17 @@
 
 -- | Extract an attribute, crashes if not a 'TagOpen'.
 --   Returns @\"\"@ if no attribute present.
+--
+-- Warning: does not distinquish between missing attribute
+-- and present attribute with value @\"\"@.
 fromAttrib :: (Show str, Eq str, StringLike str) => str -> Tag str -> str
-fromAttrib att (TagOpen _ atts) = fromMaybe empty $ lookup att atts
-fromAttrib _ x = error ("(" ++ show x ++ ") is not a TagOpen")
+fromAttrib att tag = fromMaybe empty $ maybeAttrib att tag
 
+-- | Extract an attribute, crashes if not a 'TagOpen'.
+--   Returns @Nothing@ if no attribute present.
+maybeAttrib :: (Show str, Eq str) => str -> Tag str -> Maybe str
+maybeAttrib att (TagOpen _ atts) = lookup att atts
+maybeAttrib _ x = error ("(" ++ show x ++ ") is not a TagOpen")
 
 -- | Returns True if the 'Tag' is 'TagOpen' and matches the given name
 isTagOpenName :: Eq str => str -> Tag str -> Bool
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tagsoup-0.14/tagsoup.cabal 
new/tagsoup-0.14.1/tagsoup.cabal
--- old/tagsoup-0.14/tagsoup.cabal      2016-06-11 21:50:21.000000000 +0200
+++ new/tagsoup-0.14.1/tagsoup.cabal    2017-02-25 18:25:48.000000000 +0100
@@ -1,7 +1,7 @@
-cabal-version:  >= 1.6
+cabal-version:  >= 1.18
 name:           tagsoup
-version:        0.14
-copyright:      Neil Mitchell 2006-2016
+version:        0.14.1
+copyright:      Neil Mitchell 2006-2017
 author:         Neil Mitchell <ndmitch...@gmail.com>
 maintainer:     Neil Mitchell <ndmitch...@gmail.com>
 homepage:       https://github.com/ndmitchell/tagsoup#readme
@@ -11,7 +11,7 @@
 license-file:   LICENSE
 build-type:     Simple
 synopsis:       Parsing and extracting information from (possibly malformed) 
HTML/XML documents
-tested-with:    GHC==8.0.1, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
+tested-with:    GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
 description:
     TagSoup is a library for parsing HTML/XML. It supports the HTML 5 
specification,
     and can be used to parse either well-formed XML, or unstructured and 
malformed HTML
@@ -29,9 +29,11 @@
 
 flag testprog
     default: False
+    manual: True
     description: Build the test program
 
 library
+    default-language: Haskell2010
     build-depends: base == 4.*, containers, bytestring, text
 
     exposed-modules:
@@ -51,17 +53,17 @@
         Text.HTML.TagSoup.Type
 
 executable test-tagsoup
+    default-language: Haskell2010
     if flag(testprog)
         buildable: True
         build-depends:
+            base == 4.*, containers, bytestring, text,
             QuickCheck >= 2.4,
             deepseq >= 1.1,
             time, directory, process
     else
         buildable: False
 
-    extensions: CPP
-
     main-is: Main.hs
     other-modules:
         TagSoup.Benchmark


Reply via email to