packages feed

haskell-src-exts 1.5.1 → 1.5.2

raw patch · 2 files changed

+6/−8 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Language.Haskell.Exts.Annotated.ExactPrint: class ExactP ast
+ Language.Haskell.Exts.Annotated.ExactPrint: class (Annotated ast) => ExactP ast

Files

haskell-src-exts.cabal view
@@ -1,5 +1,5 @@ Name:                   haskell-src-exts-Version:                1.5.1+Version:                1.5.2 License:                BSD3 License-File:           LICENSE Author:                 Niklas Broberg@@ -26,11 +26,9 @@                         Apart from these standard extensions,                         it also handles regular patterns as per the HaRP extension                         as well as HSX-style embedded XML syntax.-                        .-                        For details on usage, please see the website.-Homepage:               http://www.cs.chalmers.se/~d00nibro/haskell-src-exts/+Homepage:               http://code.haskell.org/haskell-src-exts Stability:              Stable-Tested-with:            GHC==6.10.2+Tested-with:            GHC==6.10.2, GHC==6.10.4 Build-Type:             Custom Cabal-Version:          >= 1.2 
src/Language/Haskell/Exts/Annotated/ExactPrint.hs view
@@ -115,9 +115,9 @@ 
 -- | Print an AST exactly as specified by the annotations on the nodes in the tree.
 exactPrint :: (ExactP ast) => ast SrcSpanInfo -> [Comment] -> String
-exactPrint ast cs = runEP (exactP ast) cs
+exactPrint ast cs = runEP (exactPC ast) cs
 
-exactPC :: (Annotated ast, ExactP ast) => ast SrcSpanInfo -> EP ()
+exactPC :: (ExactP ast) => ast SrcSpanInfo -> EP ()
 exactPC ast = let p = pos (ann ast) in mPrintComments p >> padUntil p >> exactP ast
 
 printSeq :: [(Pos, EP ())] -> EP ()
@@ -178,7 +178,7 @@ --------------------------------------------------
 -- Exact printing
 
-class ExactP ast where
+class Annotated ast => ExactP ast where
   exactP :: ast SrcSpanInfo -> EP ()
 
 instance ExactP Literal where