Hello community,

here is the log from the commit of package hscolour for openSUSE:Factory 
checked in at 2015-08-23 15:43:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hscolour (Old)
 and      /work/SRC/openSUSE:Factory/.hscolour.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hscolour"

Changes:
--------
--- /work/SRC/openSUSE:Factory/hscolour/hscolour.changes        2015-05-13 
07:12:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.hscolour.new/hscolour.changes   2015-08-23 
17:40:32.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Aug  7 08:55:25 UTC 2015 - [email protected]
+
+- update to 1.23
+* bugfix for anchor-generation for instance decls
+
+-------------------------------------------------------------------

Old:
----
  hscolour-1.22.tar.gz

New:
----
  hscolour-1.23.tar.gz

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

Other differences:
------------------
++++++ hscolour.spec ++++++
--- /var/tmp/diff_new_pack.BeEKQN/_old  2015-08-23 17:40:33.000000000 +0200
+++ /var/tmp/diff_new_pack.BeEKQN/_new  2015-08-23 17:40:33.000000000 +0200
@@ -22,7 +22,7 @@
 %global ghc_without_dynamic 1
 
 Name:           hscolour
-Version:        1.22
+Version:        1.23
 Release:        0
 Summary:        Colorise Haskell code
 License:        GPL-2.0

++++++ hscolour-1.22.tar.gz -> hscolour-1.23.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hscolour-1.22/Language/Haskell/HsColour/Anchors.hs 
new/hscolour-1.23/Language/Haskell/HsColour/Anchors.hs
--- old/hscolour-1.22/Language/Haskell/HsColour/Anchors.hs      2015-03-17 
12:51:59.000000000 +0100
+++ new/hscolour-1.23/Language/Haskell/HsColour/Anchors.hs      2015-05-11 
14:18:07.000000000 +0200
@@ -148,13 +148,21 @@
 -- the anchor name for an instance is just the entire instance head, minus
 -- any extra context clause
 getInstance = Just . unwords . ("instance":) . words . concat . map snd
-              . trimContext . takeWhile (/=(Keyword,"where"))
+              . trimContext . takeWhile (not . terminator)
   where
     trimContext ts = if (Keyglyph,"=>") `elem` ts
                      ||  (Keyglyph,"⇒") `elem` ts
                      then tail . dropWhile (`notElem`[(Keyglyph,"=>")
                                                      ,(Keyglyph,"⇒")]) $ ts
                      else ts
+    terminator (Keyword, _)   = True
+    terminator (Comment, _)   = True
+    terminator (Cpp,     _)   = True
+    terminator (Keyglyph,"|") = True
+    terminator (Layout,  ";") = True
+    terminator (Layout,  "{") = True
+    terminator (Layout,  "}") = True
+    terminator _              = False
 
 -- simple implementation of a string lookup table.
 -- replace this with something more sophisticated if needed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hscolour-1.22/hscolour.cabal 
new/hscolour-1.23/hscolour.cabal
--- old/hscolour-1.22/hscolour.cabal    2015-03-17 12:52:00.000000000 +0100
+++ new/hscolour-1.23/hscolour.cabal    2015-05-11 14:18:07.000000000 +0200
@@ -1,5 +1,5 @@
 Name: hscolour
-Version: 1.22
+Version: 1.23
 Copyright: 2003-2015 Malcolm Wallace; 2006 Bjorn Bringert
 Maintainer: Malcolm Wallace
 Author: Malcolm Wallace


Reply via email to