packages feed

auto-export 0.1.0.1 → 0.1.1.0

raw patch · 4 files changed

+15/−19 lines, 4 filesdep ~ghcPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ghc

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # Revision history for auto-export +## 0.1.1.0 -- 2026-05-12++* Support GHC 9.14+* Drop support for 9.6++## 0.1.0.2 -- 2025-11-12++* Remove stray debug output+ ## 0.1.0.1 -- 2025-11-11  * Fix a crash involving nameless exports (modules)
auto-export.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               auto-export-version:            0.1.0.1+version:            0.1.1.0 synopsis:           Automatically add things to module export list description:        Automatically add things to module export list using a GHC plugin license:            BSD-3-Clause@@ -12,7 +12,7 @@ build-type:         Simple extra-doc-files:    CHANGELOG.md                     README.md-tested-with: GHC == 9.12.1, GHC == 9.10.1, GHC == 9.8.1, GHC == 9.6.1+tested-with: GHC == 9.14.1, GHC == 9.12.1, GHC == 9.10.1, GHC == 9.8.1  source-repository head   type: git@@ -28,7 +28,7 @@     -- other-modules:     default-extensions: LambdaCase     build-depends:    base < 5,-                      ghc >= 9.6 && < 9.13,+                      ghc >= 9.8 && < 9.15,                       bytestring < 0.13,                       mtl >= 2.3,                       ghc-exactprint,
src/AutoExport.hs view
@@ -124,7 +124,6 @@   -> FilePath   -> IO () modifyModule parsedMod usesCpp newIEs filePath = do-  putStrLn . Ghc.showSDocUnsafe $ Ghc.ppr newIEs   let ast = EP.makeDeltaAst parsedMod       addIEs m = m           { Ghc.hsmodExports = fmap (addExports newIEs) <$> Ghc.hsmodExports m }@@ -137,7 +136,7 @@         | usesCpp =             reverse . ('\n' :) . dropWhile (== '\n') . reverse         | otherwise = id-      printed = removeTrailingNewlines $ EP.exactPrint updatedMod+      !printed = removeTrailingNewlines $ EP.exactPrint updatedMod   writeFile filePath printed  addExports :: [Ghc.IE Ghc.GhcPs] -> [Ghc.LIE Ghc.GhcPs] -> [Ghc.LIE Ghc.GhcPs]@@ -243,6 +242,7 @@             name       | otherwise = Ghc.L loc name +    isTypeData :: Ghc.TyClDecl Ghc.GhcPs -> Bool     isTypeData = \case       Ghc.DataDecl { Ghc.tcdDataDefn = defn } ->         Ghc.isTypeDataDefnCons $ Ghc.dd_cons defn
src/AutoExport/GhcFacade.hs view
@@ -38,8 +38,6 @@ import           GHC.Utils.Error as Ghc #if MIN_VERSION_ghc(9,8,0) import           GHC.Driver.DynFlags as Ghc-#else-import           GHC.Driver.Session as Ghc #endif  import qualified Language.Haskell.GHC.ExactPrint as EP@@ -63,13 +61,6 @@         , Ghc.AddEpAnn Ghc.AnnCloseP EP.d0 ]       Ghc.emptyComments   )-#else-  Ghc.EpAnn-    (Ghc.Anchor Ghc.placeholderRealSpan EP.m0)-    [ Ghc.AddEpAnn Ghc.AnnOpenP EP.d0-      , Ghc.AddEpAnn Ghc.AnnDotdot EP.d0-      , Ghc.AddEpAnn Ghc.AnnCloseP EP.d0 ]-    Ghc.emptyComments #endif  ieTypeAnn :: Ghc.XIEType Ghc.GhcPs@@ -111,7 +102,7 @@   :: Ghc.NoAnn ann => Ghc.EpAnn ann anchorD1 = EP.noAnnSrcSpanDP1 anchorD0 = EP.noAnnSrcSpanDP0-#elif MIN_VERSION_ghc(9,6,0)+#elif MIN_VERSION_ghc(9,8,0)   :: Monoid ann => Ghc.SrcAnn ann  -- blarg@@ -143,8 +134,6 @@     Ghc.noAnn #elif MIN_VERSION_ghc(9,8,0)     Nothing-#else-    Ghc.noExtField #endif     name #if MIN_VERSION_ghc(9,10,0)@@ -158,8 +147,6 @@     Ghc.noAnn #elif MIN_VERSION_ghc(9,8,0)     (Nothing, Ghc.noAnn)-#else-    Ghc.noAnn #endif     name #if MIN_VERSION_ghc(9,10,0)