hscolour 1.22 → 1.23
raw patch · 2 files changed
+10/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
Language/Haskell/HsColour/Anchors.hs view
@@ -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.
hscolour.cabal view
@@ -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