Zubin pushed to branch wip/10.0-forward-ports at Glasgow Haskell Compiler / GHC Commits: ee3aea5c by Zubin Duggal at 2026-11-24T16:00:48+05:30 changelog-d: support Cabal-syntax 3.18 - - - - - 2362fd08 by Zubin Duggal at 2026-11-24T16:00:49+05:30 Bump Cabal submodule to 3.18.1.0 (cherry picked from commit b11f2da277d84daa547bb1fa768b0a4087b0e3af) - - - - - 101b562b by Zubin Duggal at 2026-11-24T16:00:49+05:30 Bump time submodule to 1.16.0.1 (cherry picked from commit 08f0356f5771137f078167c5df5594c3c0afcbd0) - - - - - 92e77659 by Zubin Duggal at 2026-11-24T16:00:49+05:30 haddock: Bump version to 2.34.0 (cherry picked from commit d99c412783ce30ede86e4f8d9cd6c00bb854711e) - - - - - 18 changed files: - compiler/ghc.cabal.in - ghc/ghc-bin.cabal.in - libraries/Cabal - libraries/hpc - libraries/time - libraries/unix - testsuite/tests/cabal/cabal06/Makefile - testsuite/tests/cabal/pkg_bytecode.stderr - testsuite/tests/cabal/pkg_bytecode_foreign.stderr - testsuite/tests/cabal/pkg_bytecode_with_gbc.stderr - testsuite/tests/cabal/pkg_bytecode_with_o.stderr - testsuite/tests/driver/T4437.hs - testsuite/tests/driver/T4437.stdout - utils/changelog-d/ChangelogD.hs - utils/changelog-d/changelog-d.cabal - utils/haddock/haddock-api/haddock-api.cabal - utils/haddock/haddock-test/src/Test/Haddock/Config.hs - utils/haddock/haddock.cabal Changes: ===================================== compiler/ghc.cabal.in ===================================== @@ -121,7 +121,7 @@ Library bytestring >= 0.11 && < 0.13, binary == 0.8.*, text >= 2.0 && < 2.2, - time >= 1.4 && < 1.16, + time >= 1.4 && < 1.17, containers >= 0.6.2.1 && < 0.9, array >= 0.1 && < 0.6, filepath >= 1.5 && < 1.6, ===================================== ghc/ghc-bin.cabal.in ===================================== @@ -67,7 +67,7 @@ Executable ghc ghci == @ProjectVersionMunged@, haskeline == 0.8.*, exceptions == 0.10.*, - time >= 1.8 && < 1.16 + time >= 1.8 && < 1.17 CPP-Options: -DHAVE_INTERPRETER Other-Modules: GHCi.Leak ===================================== libraries/Cabal ===================================== @@ -1 +1 @@ -Subproject commit 8d1f5a33662be0db0654061fb53fb00e3f4417e0 +Subproject commit 2bbefdfc22d856cc5ed0eed742f935427722d49e ===================================== libraries/hpc ===================================== @@ -1 +1 @@ -Subproject commit 9d3e03082836acbeb82e460dc97213c618939f37 +Subproject commit 863aca2481d2fd0f9dfc629e0d3dc27d66d29a6f ===================================== libraries/time ===================================== @@ -1 +1 @@ -Subproject commit 507f50844802f1469ba6cadfeefd4e3fecee0416 +Subproject commit 24ddc629d3da321f4d6bf36ea7b329ffc7978032 ===================================== libraries/unix ===================================== @@ -1 +1 @@ -Subproject commit 303cb8281dbc50f62461c2238667018c43debb42 +Subproject commit 72099872d72e9cf29e64024736325fa30b5cafdd ===================================== testsuite/tests/cabal/cabal06/Makefile ===================================== @@ -29,22 +29,22 @@ cabal06: clean cd p-1.0 && $(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' --ghc-options='$(TEST_HC_OPTS)' --package-db=../tmp.d --prefix='$(PWD)/inst-a' --ghc-pkg-options='--enable-multi-instance' cd p-1.0 && $(SETUP) build cd p-1.0 && $(SETUP) copy - (cd p-1.0 && $(SETUP) register --print-ipid) > tmp_p_1_0 + (cd p-1.0 && ../Setup register --print-ipid) | grep '^p-1\.0-' > tmp_p_1_0 cd q && $(SETUP) clean cd q && $(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' --ghc-options='$(TEST_HC_OPTS)' --package-db=../tmp.d --prefix='$(PWD)/inst-b' --ghc-pkg-options='--enable-multi-instance' cd q && $(SETUP) build cd q && $(SETUP) copy - (cd q && $(SETUP) register --print-ipid) > tmp_first_q + (cd q && ../Setup register --print-ipid) | grep '^q-1\.0-' > tmp_first_q cd p-1.1 && $(SETUP) clean cd p-1.1 && $(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' --ghc-options='$(TEST_HC_OPTS)' --package-db=../tmp.d --prefix='$(PWD)/inst-c' --ghc-pkg-options='--enable-multi-instance' cd p-1.1 && $(SETUP) build cd p-1.1 && $(SETUP) copy - (cd p-1.1 && $(SETUP) register --print-ipid) > tmp_p_1_1 + (cd p-1.1 && ../Setup register --print-ipid) | grep '^p-1\.1-' > tmp_p_1_1 cd q && $(SETUP) clean cd q && $(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --with-hc-pkg='$(GHC_PKG)' --ghc-options='$(TEST_HC_OPTS)' --package-db=../tmp.d --constraint="p==1.1" --prefix='$(PWD)/inst-d' --ghc-pkg-options='--enable-multi-instance' cd q && $(SETUP) build cd q && $(SETUP) copy - (cd q && $(SETUP) register --print-ipid) > tmp_second_q + (cd q && ../Setup register --print-ipid) | grep '^q-1\.0-' > tmp_second_q @echo "Does the first instance of q depend on p-1.0?" '$(GHC_PKG)' field --ipid `cat tmp_first_q` depends -f tmp.d | grep `cat tmp_p_1_0` | wc -l | sed 's/[[:space:]]//g' @echo "Does the second instance of q depend on p-1.0?" ===================================== testsuite/tests/cabal/pkg_bytecode.stderr ===================================== @@ -1 +0,0 @@ -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" ===================================== testsuite/tests/cabal/pkg_bytecode_foreign.stderr ===================================== @@ -1 +0,0 @@ -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" ===================================== testsuite/tests/cabal/pkg_bytecode_with_gbc.stderr ===================================== @@ -1,4 +1,3 @@ when making flags consistent: warning: [GHC-74335] [-Winconsistent-flags] Byte-code linking does not currently support linking an executable, enabling -no-link -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" ===================================== testsuite/tests/cabal/pkg_bytecode_with_o.stderr ===================================== @@ -1 +0,0 @@ -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" ===================================== testsuite/tests/driver/T4437.hs ===================================== @@ -36,7 +36,7 @@ check title expected got -- See Note [Adding a language extension] in compiler/GHC/Driver/Session.hs. expectedGhcOnlyExtensions :: [String] -expectedGhcOnlyExtensions = [ "QualifiedStrings", "Modifiers", "LazyFieldAnnotations" ] +expectedGhcOnlyExtensions = [ "LazyFieldAnnotations" ] expectedCabalOnlyExtensions :: [String] expectedCabalOnlyExtensions = ["Generics", ===================================== testsuite/tests/driver/T4437.stdout ===================================== @@ -1,6 +0,0 @@ -GHC-only flags: Unexpected flags ------ -ExplicitLevelImports -ImplicitStagePersistence ------ - ===================================== utils/changelog-d/ChangelogD.hs ===================================== @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# OPTIONS_GHC -Wall #-} @@ -37,6 +38,18 @@ import qualified Distribution.Pretty as C import qualified Distribution.Utils.Generic as C import qualified Text.PrettyPrint as PP +#if MIN_VERSION_Cabal_syntax(3,18,0) +type ParseResult = C.ParseResult () + +perror :: C.PErrorWithSource () -> C.PError +perror = C.perror +#else +type ParseResult = C.ParseResult + +perror :: C.PError -> C.PError +perror = id +#endif + ------------------------------------------------------------------------------- -- CLI ------------------------------------------------------------------------------- @@ -87,7 +100,7 @@ parseArgs = go defaultOpts ------------------------------------------------------------------------------- parseWith - :: ([C.Field C.Position] -> C.ParseResult a) + :: ([C.Field C.Position] -> ParseResult a) -> FilePath -> BS.ByteString -> Either String a @@ -104,7 +117,7 @@ parseWith parser fp bs = case C.readFields' bs of Right x -> Right x Left (_mver, errs) -> Left $ unlines [ fp ++ ":" ++ C.showPos pos ++ ": " ++ msg - | C.PError pos msg <- toList errs + | C.PError pos msg <- map perror (toList errs) ] ------------------------------------------------------------------------------- @@ -354,7 +367,7 @@ data Cfg = Cfg } deriving (Show) -parseConfig :: [C.Field C.Position] -> C.ParseResult Cfg +parseConfig :: [C.Field C.Position] -> ParseResult Cfg parseConfig fields0 = do traverse_ warnSection $ concat sections raw <- C.parseFieldGrammar C.cabalSpecLatest fields cfgRawGrammar @@ -368,7 +381,7 @@ parseConfig fields0 = do where (fields, sections) = C.partitionFields fields0 - warnSection :: C.Section C.Position -> C.ParseResult () + warnSection :: C.Section C.Position -> ParseResult () warnSection (C.MkSection (C.Name pos name) _ _) = C.parseWarning pos C.PWTUnknownSection $ "Unknown section " ++ C.fromUTF8BS name @@ -457,7 +470,7 @@ parseEntryFile fp contents = reportParseError err = exitWithExc $ PlainError $ err ++ "\nChangelog entries use Cabal field syntax; see utils/changelog-d/README.md for details." -parseEntry :: [C.Field C.Position] -> C.ParseResult Entry +parseEntry :: [C.Field C.Position] -> ParseResult Entry parseEntry fields0 = do traverse_ warnSection $ concat sections e <- C.parseFieldGrammar C.cabalSpecLatest fields entryGrammar @@ -467,7 +480,7 @@ parseEntry fields0 = do where (fields, sections) = C.partitionFields fields0 - warnSection :: C.Section C.Position -> C.ParseResult () + warnSection :: C.Section C.Position -> ParseResult () warnSection (C.MkSection (C.Name pos name) _ _) = C.parseWarning pos C.PWTUnknownSection $ "Unknown section " ++ C.fromUTF8BS name ===================================== utils/changelog-d/changelog-d.cabal ===================================== @@ -26,6 +26,7 @@ executable changelog-d , pretty other-extensions: + CPP OverloadedStrings RecordWildCards ScopedTypeVariables ===================================== utils/haddock/haddock-api/haddock-api.cabal ===================================== @@ -1,6 +1,6 @@ cabal-version: 3.0 name: haddock-api -version: 2.30.0 +version: 2.34.0 synopsis: A documentation-generation tool for Haskell libraries description: Haddock is a documentation-generation tool for Haskell libraries ===================================== utils/haddock/haddock-test/src/Test/Haddock/Config.hs ===================================== @@ -36,6 +36,10 @@ import Test.Haddock.Process import Test.Haddock.Utils +normalV :: Verbosity +normalV = mkVerbosity defaultVerbosityHandles normal + + data TestPackage = TestPackage { tpkgName :: String , tpkgFiles :: [FilePath] @@ -197,7 +201,7 @@ loadConfig ccfg dcfg flags files = do -- Perhaps Haddock knows where you can find GHC? queriedGhcPath <- do - p <- init <$> rawSystemStdout normal cfgHaddockPath ["--print-ghc-path"] + p <- init <$> rawSystemStdout normalV cfgHaddockPath ["--print-ghc-path"] exists <- doesFileExist p pure $ if exists then Just p else Nothing @@ -261,9 +265,9 @@ baseDependencies ghcPath ghcPkgPath = do -- consequences of unsetting it - but looks like it works (for now). unsetEnv "GHC_PACKAGE_PATH" - (comp, _, cfg) <- configure normal (Just ghcPath) ghcPkgPath + (_, _, cfg) <- configure normalV (Just ghcPath) ghcPkgPath defaultProgramDb - pkgIndex <- getInstalledPackages normal comp Nothing [GlobalPackageDB] cfg + pkgIndex <- getInstalledPackages normalV Nothing [GlobalPackageDB] cfg let pkgs = [ "array" ===================================== utils/haddock/haddock.cabal ===================================== @@ -1,6 +1,6 @@ cabal-version: 3.0 name: haddock -version: 2.30.0 +version: 2.34.0 synopsis: A documentation-generation tool for Haskell libraries description: This is Haddock, a tool for automatically generating documentation @@ -93,7 +93,7 @@ executable haddock base >= 4.13.0.0 && <4.24, -- in order for haddock's advertised version number to have proper meaning, -- we pin down to a single haddock-api version. - haddock-api == 2.30.0 + haddock-api == 2.34.0 test-suite html-test import: extensions View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9737accfc04c843bc5acebe5f549160... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9737accfc04c843bc5acebe5f549160... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help