ghc-exactprint 1.6.1 → 1.6.1.1
raw patch · 5 files changed
+19/−3 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog +3/−0
- ghc-exactprint.cabal +2/−1
- src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs +7/−1
- tests/Test.hs +1/−1
- tests/examples/ghc94/HsDocTy.hs +6/−0
ChangeLog view
@@ -1,4 +1,7 @@ 2022-11-08 v1.6.1+ * Add GHC 9.4.4 to CI+ * Add support for exact printing HsDocTy. #121+2022-11-08 v1.6.1 * Support GHC 9.4.3 2022-09-30 v1.6.0 * Support GHC 9.4.1 and GHC 9.4.2
ghc-exactprint.cabal view
@@ -1,5 +1,5 @@ name: ghc-exactprint-version: 1.6.1+version: 1.6.1.1 synopsis: ExactPrint for GHC description: Using the API Annotations available from GHC 9.2.1, this library provides a means to round trip any code that can@@ -18,6 +18,7 @@ tested-with: GHC == 9.4.1 , GHC == 9.4.2 , GHC == 9.4.3+ , GHC == 9.4.4 extra-source-files: ChangeLog tests/examples/failing/*.hs tests/examples/ghc710-only/*.hs
src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs view
@@ -3957,6 +3957,10 @@ exact (HsSpliceTy a splice) = do splice' <- markAnnotated splice return (HsSpliceTy a splice')+ exact (HsDocTy an ty doc) = do+ ty' <- markAnnotated ty+ doc' <- markAnnotated doc+ return (HsDocTy an ty' doc') exact (HsBangTy an (HsSrcBang mt up str) ty) = do an0 <- case mt of@@ -3995,7 +3999,9 @@ (HsCharTy src v) -> printSourceText src (show v) return (HsTyLit a lit) exact t@(HsWildCardTy _) = printStringAdvance "_" >> return t- exact x = error $ "missing match for HsType:" ++ showAst x+ exact x@(HsRecTy _ _) = error $ "missing match for HsType:" ++ showAst x+ exact x@(XHsType _) = error $ "missing match for HsType:" ++ showAst x+ -- ---------------------------------------------------------------------
tests/Test.hs view
@@ -246,7 +246,7 @@ -- mkParserTestBC libdir "ghc92" "TopLevelSemis1.hs" -- mkParserTestMD libdir "ghc92" "TopLevelSemis1.hs" - mkParserTest libdir "ghc94" "record-dot-four-out.hs"+ mkParserTest libdir "ghc94" "HsDocTy.hs" -- Needs GHC changes
+ tests/examples/ghc94/HsDocTy.hs view
@@ -0,0 +1,6 @@+{-# OPTIONS_GHC -haddock #-}+module HsDocTy where++class C1 a where+ f1 :: a -> Int+ -- ^ comment on Int