ghc-exactprint 1.14.3.0 → 1.14.4.0
raw patch · 3 files changed
+28/−2 lines, 3 filesdep ~extraPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: extra
API changes (from Hackage documentation)
Files
ChangeLog view
@@ -1,4 +1,6 @@ Unreleased+2026-12-03 v1.14.4.0+ * Support GHC 9.14.2 as well as 9.14.1 2026-10-06 v1.14.3.0 * Constructing GADT decls using hand-crafted different line deltas will be printed at a different column. (#156, @simonhorlick)
ghc-exactprint.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: ghc-exactprint-version: 1.14.3.0+version: 1.14.4.0 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@@ -16,7 +16,7 @@ maintainer: alan.zimm@gmail.com category: Development build-type: Simple-tested-with: GHC == 9.14.1+tested-with: GHC == 9.14.1, GHC == 9.14.2 extra-doc-files: ChangeLog extra-source-files: tests/examples/failing/*.hs tests/examples/failing/*.hs.bad@@ -98,6 +98,7 @@ if flag (dev) build-depends: mtl >= 2.2.1+ , extra < 1.9 else build-depends: ghc-exactprint if impl (ghc < 9.14)
src/Language/Haskell/GHC/ExactPrint/ExactPrint.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE BlockArguments #-} {-# LANGUAGE DataKinds #-}@@ -2034,6 +2035,27 @@ markActivation :: (Monad m, Monoid w) => ActivationAnn -> Activation -> EP w m ActivationAnn+#if MIN_VERSION_GLASGOW_HASKELL(9, 14, 2, 0)+markActivation (ActivationAnn o src c t v) act = do+ case act of+ ActiveBefore phase -> do+ o' <- markEpToken o -- '['+ t' <- mapM markEpToken t -- ~+ v' <- mapM (\val -> printStringAtAA val (toSourceTextWithSuffix src (show phase) "")) v+ c' <- markEpToken c -- ']'+ return (ActivationAnn o' src c' t' v')+ ActiveAfter phase -> do+ o' <- markEpToken o -- '['+ v' <- mapM (\val -> printStringAtAA val (toSourceTextWithSuffix src (show phase) "")) v+ c' <- markEpToken c -- ']'+ return (ActivationAnn o' src c' t v')+ NeverActive -> do+ o' <- markEpToken o -- '['+ t' <- mapM markEpToken t -- ~+ c' <- markEpToken c -- ']'+ return (ActivationAnn o' src c' t' v)+ _ -> return (ActivationAnn o src c t v)+#else markActivation (ActivationAnn o c t v) act = do case act of ActiveBefore src phase -> do@@ -2053,6 +2075,7 @@ c' <- markEpToken c -- ']' return (ActivationAnn o' c' t' v) _ -> return (ActivationAnn o c t v)+#endif -- ---------------------------------------------------------------------