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
-
2362fd08
by Zubin Duggal at 2026-11-24T16:00:49+05:30
-
101b562b
by Zubin Duggal at 2026-11-24T16:00:49+05:30
-
92e77659
by Zubin Duggal at 2026-11-24T16:00:49+05:30
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:
| ... | ... | @@ -121,7 +121,7 @@ Library |
| 121 | 121 | bytestring >= 0.11 && < 0.13,
|
| 122 | 122 | binary == 0.8.*,
|
| 123 | 123 | text >= 2.0 && < 2.2,
|
| 124 | - time >= 1.4 && < 1.16,
|
|
| 124 | + time >= 1.4 && < 1.17,
|
|
| 125 | 125 | containers >= 0.6.2.1 && < 0.9,
|
| 126 | 126 | array >= 0.1 && < 0.6,
|
| 127 | 127 | filepath >= 1.5 && < 1.6,
|
| ... | ... | @@ -67,7 +67,7 @@ Executable ghc |
| 67 | 67 | ghci == @ProjectVersionMunged@,
|
| 68 | 68 | haskeline == 0.8.*,
|
| 69 | 69 | exceptions == 0.10.*,
|
| 70 | - time >= 1.8 && < 1.16
|
|
| 70 | + time >= 1.8 && < 1.17
|
|
| 71 | 71 | CPP-Options: -DHAVE_INTERPRETER
|
| 72 | 72 | Other-Modules:
|
| 73 | 73 | GHCi.Leak
|
| 1 | -Subproject commit 8d1f5a33662be0db0654061fb53fb00e3f4417e0 |
|
| 1 | +Subproject commit 2bbefdfc22d856cc5ed0eed742f935427722d49e |
| 1 | -Subproject commit 9d3e03082836acbeb82e460dc97213c618939f37 |
|
| 1 | +Subproject commit 863aca2481d2fd0f9dfc629e0d3dc27d66d29a6f |
| 1 | -Subproject commit 507f50844802f1469ba6cadfeefd4e3fecee0416 |
|
| 1 | +Subproject commit 24ddc629d3da321f4d6bf36ea7b329ffc7978032 |
| 1 | -Subproject commit 303cb8281dbc50f62461c2238667018c43debb42 |
|
| 1 | +Subproject commit 72099872d72e9cf29e64024736325fa30b5cafdd |
| ... | ... | @@ -29,22 +29,22 @@ cabal06: clean |
| 29 | 29 | 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'
|
| 30 | 30 | cd p-1.0 && $(SETUP) build
|
| 31 | 31 | cd p-1.0 && $(SETUP) copy
|
| 32 | - (cd p-1.0 && $(SETUP) register --print-ipid) > tmp_p_1_0
|
|
| 32 | + (cd p-1.0 && ../Setup register --print-ipid) | grep '^p-1\.0-' > tmp_p_1_0
|
|
| 33 | 33 | cd q && $(SETUP) clean
|
| 34 | 34 | 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'
|
| 35 | 35 | cd q && $(SETUP) build
|
| 36 | 36 | cd q && $(SETUP) copy
|
| 37 | - (cd q && $(SETUP) register --print-ipid) > tmp_first_q
|
|
| 37 | + (cd q && ../Setup register --print-ipid) | grep '^q-1\.0-' > tmp_first_q
|
|
| 38 | 38 | cd p-1.1 && $(SETUP) clean
|
| 39 | 39 | 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'
|
| 40 | 40 | cd p-1.1 && $(SETUP) build
|
| 41 | 41 | cd p-1.1 && $(SETUP) copy
|
| 42 | - (cd p-1.1 && $(SETUP) register --print-ipid) > tmp_p_1_1
|
|
| 42 | + (cd p-1.1 && ../Setup register --print-ipid) | grep '^p-1\.1-' > tmp_p_1_1
|
|
| 43 | 43 | cd q && $(SETUP) clean
|
| 44 | 44 | 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'
|
| 45 | 45 | cd q && $(SETUP) build
|
| 46 | 46 | cd q && $(SETUP) copy
|
| 47 | - (cd q && $(SETUP) register --print-ipid) > tmp_second_q
|
|
| 47 | + (cd q && ../Setup register --print-ipid) | grep '^q-1\.0-' > tmp_second_q
|
|
| 48 | 48 | @echo "Does the first instance of q depend on p-1.0?"
|
| 49 | 49 | '$(GHC_PKG)' field --ipid `cat tmp_first_q` depends -f tmp.d | grep `cat tmp_p_1_0` | wc -l | sed 's/[[:space:]]//g'
|
| 50 | 50 | @echo "Does the second instance of q depend on p-1.0?"
|
| 1 | -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" |
| 1 | -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" |
| 1 | 1 | when making flags consistent: warning: [GHC-74335] [-Winconsistent-flags]
|
| 2 | 2 | Byte-code linking does not currently support linking an executable, enabling -no-link
|
| 3 | 3 | |
| 4 | -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" |
| 1 | -testpkg-1.2.3.4: Warning: .:19:1: Unknown field: "bytecode-library-dirs" |
| ... | ... | @@ -36,7 +36,7 @@ check title expected got |
| 36 | 36 | |
| 37 | 37 | -- See Note [Adding a language extension] in compiler/GHC/Driver/Session.hs.
|
| 38 | 38 | expectedGhcOnlyExtensions :: [String]
|
| 39 | -expectedGhcOnlyExtensions = [ "QualifiedStrings", "Modifiers", "LazyFieldAnnotations" ]
|
|
| 39 | +expectedGhcOnlyExtensions = [ "LazyFieldAnnotations" ]
|
|
| 40 | 40 | |
| 41 | 41 | expectedCabalOnlyExtensions :: [String]
|
| 42 | 42 | expectedCabalOnlyExtensions = ["Generics",
|
| 1 | -GHC-only flags: Unexpected flags
|
|
| 2 | ------
|
|
| 3 | -ExplicitLevelImports
|
|
| 4 | -ImplicitStagePersistence
|
|
| 5 | ------
|
|
| 6 | - |
| 1 | +{-# LANGUAGE CPP #-}
|
|
| 1 | 2 | {-# LANGUAGE OverloadedStrings #-}
|
| 2 | 3 | {-# LANGUAGE RecordWildCards #-}
|
| 3 | 4 | {-# OPTIONS_GHC -Wall #-}
|
| ... | ... | @@ -37,6 +38,18 @@ import qualified Distribution.Pretty as C |
| 37 | 38 | import qualified Distribution.Utils.Generic as C
|
| 38 | 39 | import qualified Text.PrettyPrint as PP
|
| 39 | 40 | |
| 41 | +#if MIN_VERSION_Cabal_syntax(3,18,0)
|
|
| 42 | +type ParseResult = C.ParseResult ()
|
|
| 43 | + |
|
| 44 | +perror :: C.PErrorWithSource () -> C.PError
|
|
| 45 | +perror = C.perror
|
|
| 46 | +#else
|
|
| 47 | +type ParseResult = C.ParseResult
|
|
| 48 | + |
|
| 49 | +perror :: C.PError -> C.PError
|
|
| 50 | +perror = id
|
|
| 51 | +#endif
|
|
| 52 | + |
|
| 40 | 53 | -------------------------------------------------------------------------------
|
| 41 | 54 | -- CLI
|
| 42 | 55 | -------------------------------------------------------------------------------
|
| ... | ... | @@ -87,7 +100,7 @@ parseArgs = go defaultOpts |
| 87 | 100 | -------------------------------------------------------------------------------
|
| 88 | 101 | |
| 89 | 102 | parseWith
|
| 90 | - :: ([C.Field C.Position] -> C.ParseResult a)
|
|
| 103 | + :: ([C.Field C.Position] -> ParseResult a)
|
|
| 91 | 104 | -> FilePath
|
| 92 | 105 | -> BS.ByteString
|
| 93 | 106 | -> Either String a
|
| ... | ... | @@ -104,7 +117,7 @@ parseWith parser fp bs = case C.readFields' bs of |
| 104 | 117 | Right x -> Right x
|
| 105 | 118 | Left (_mver, errs) -> Left $ unlines
|
| 106 | 119 | [ fp ++ ":" ++ C.showPos pos ++ ": " ++ msg
|
| 107 | - | C.PError pos msg <- toList errs
|
|
| 120 | + | C.PError pos msg <- map perror (toList errs)
|
|
| 108 | 121 | ]
|
| 109 | 122 | |
| 110 | 123 | -------------------------------------------------------------------------------
|
| ... | ... | @@ -354,7 +367,7 @@ data Cfg = Cfg |
| 354 | 367 | }
|
| 355 | 368 | deriving (Show)
|
| 356 | 369 | |
| 357 | -parseConfig :: [C.Field C.Position] -> C.ParseResult Cfg
|
|
| 370 | +parseConfig :: [C.Field C.Position] -> ParseResult Cfg
|
|
| 358 | 371 | parseConfig fields0 = do
|
| 359 | 372 | traverse_ warnSection $ concat sections
|
| 360 | 373 | raw <- C.parseFieldGrammar C.cabalSpecLatest fields cfgRawGrammar
|
| ... | ... | @@ -368,7 +381,7 @@ parseConfig fields0 = do |
| 368 | 381 | where
|
| 369 | 382 | (fields, sections) = C.partitionFields fields0
|
| 370 | 383 | |
| 371 | - warnSection :: C.Section C.Position -> C.ParseResult ()
|
|
| 384 | + warnSection :: C.Section C.Position -> ParseResult ()
|
|
| 372 | 385 | warnSection (C.MkSection (C.Name pos name) _ _) =
|
| 373 | 386 | C.parseWarning pos C.PWTUnknownSection $ "Unknown section " ++ C.fromUTF8BS name
|
| 374 | 387 | |
| ... | ... | @@ -457,7 +470,7 @@ parseEntryFile fp contents = |
| 457 | 470 | reportParseError err = exitWithExc $ PlainError $
|
| 458 | 471 | err ++ "\nChangelog entries use Cabal field syntax; see utils/changelog-d/README.md for details."
|
| 459 | 472 | |
| 460 | -parseEntry :: [C.Field C.Position] -> C.ParseResult Entry
|
|
| 473 | +parseEntry :: [C.Field C.Position] -> ParseResult Entry
|
|
| 461 | 474 | parseEntry fields0 = do
|
| 462 | 475 | traverse_ warnSection $ concat sections
|
| 463 | 476 | e <- C.parseFieldGrammar C.cabalSpecLatest fields entryGrammar
|
| ... | ... | @@ -467,7 +480,7 @@ parseEntry fields0 = do |
| 467 | 480 | where
|
| 468 | 481 | (fields, sections) = C.partitionFields fields0
|
| 469 | 482 | |
| 470 | - warnSection :: C.Section C.Position -> C.ParseResult ()
|
|
| 483 | + warnSection :: C.Section C.Position -> ParseResult ()
|
|
| 471 | 484 | warnSection (C.MkSection (C.Name pos name) _ _) =
|
| 472 | 485 | C.parseWarning pos C.PWTUnknownSection $ "Unknown section " ++ C.fromUTF8BS name
|
| 473 | 486 |
| ... | ... | @@ -26,6 +26,7 @@ executable changelog-d |
| 26 | 26 | , pretty
|
| 27 | 27 | |
| 28 | 28 | other-extensions:
|
| 29 | + CPP
|
|
| 29 | 30 | OverloadedStrings
|
| 30 | 31 | RecordWildCards
|
| 31 | 32 | ScopedTypeVariables |
| 1 | 1 | cabal-version: 3.0
|
| 2 | 2 | name: haddock-api
|
| 3 | -version: 2.30.0
|
|
| 3 | +version: 2.34.0
|
|
| 4 | 4 | synopsis: A documentation-generation tool for Haskell libraries
|
| 5 | 5 | description: Haddock is a documentation-generation tool for Haskell
|
| 6 | 6 | libraries
|
| ... | ... | @@ -36,6 +36,10 @@ import Test.Haddock.Process |
| 36 | 36 | import Test.Haddock.Utils
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | +normalV :: Verbosity
|
|
| 40 | +normalV = mkVerbosity defaultVerbosityHandles normal
|
|
| 41 | + |
|
| 42 | + |
|
| 39 | 43 | data TestPackage = TestPackage
|
| 40 | 44 | { tpkgName :: String
|
| 41 | 45 | , tpkgFiles :: [FilePath]
|
| ... | ... | @@ -197,7 +201,7 @@ loadConfig ccfg dcfg flags files = do |
| 197 | 201 | |
| 198 | 202 | -- Perhaps Haddock knows where you can find GHC?
|
| 199 | 203 | queriedGhcPath <- do
|
| 200 | - p <- init <$> rawSystemStdout normal cfgHaddockPath ["--print-ghc-path"]
|
|
| 204 | + p <- init <$> rawSystemStdout normalV cfgHaddockPath ["--print-ghc-path"]
|
|
| 201 | 205 | exists <- doesFileExist p
|
| 202 | 206 | pure $ if exists then Just p else Nothing
|
| 203 | 207 | |
| ... | ... | @@ -261,9 +265,9 @@ baseDependencies ghcPath ghcPkgPath = do |
| 261 | 265 | -- consequences of unsetting it - but looks like it works (for now).
|
| 262 | 266 | unsetEnv "GHC_PACKAGE_PATH"
|
| 263 | 267 | |
| 264 | - (comp, _, cfg) <- configure normal (Just ghcPath) ghcPkgPath
|
|
| 268 | + (_, _, cfg) <- configure normalV (Just ghcPath) ghcPkgPath
|
|
| 265 | 269 | defaultProgramDb
|
| 266 | - pkgIndex <- getInstalledPackages normal comp Nothing [GlobalPackageDB] cfg
|
|
| 270 | + pkgIndex <- getInstalledPackages normalV Nothing [GlobalPackageDB] cfg
|
|
| 267 | 271 | let
|
| 268 | 272 | pkgs =
|
| 269 | 273 | [ "array"
|
| 1 | 1 | cabal-version: 3.0
|
| 2 | 2 | name: haddock
|
| 3 | -version: 2.30.0
|
|
| 3 | +version: 2.34.0
|
|
| 4 | 4 | synopsis: A documentation-generation tool for Haskell libraries
|
| 5 | 5 | description:
|
| 6 | 6 | This is Haddock, a tool for automatically generating documentation
|
| ... | ... | @@ -93,7 +93,7 @@ executable haddock |
| 93 | 93 | base >= 4.13.0.0 && <4.24,
|
| 94 | 94 | -- in order for haddock's advertised version number to have proper meaning,
|
| 95 | 95 | -- we pin down to a single haddock-api version.
|
| 96 | - haddock-api == 2.30.0
|
|
| 96 | + haddock-api == 2.34.0
|
|
| 97 | 97 | |
| 98 | 98 | test-suite html-test
|
| 99 | 99 | import: extensions
|