Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC Commits: cbe0a6bf by fendor at 2026-11-17T09:25:55-05:00 Add support for streaming `ghc -M` to stdout Adds the flags `-dep-json-stdout` and `-dep-makefile-stdout` which streams dependency information line-by-line to stdout. Each dependency generation can be redirected to separate outputs. Providing any extra `-dep-{json,makefile}[-stdout]` disables the default generation of the `Makefile` file. Allows consumers to start processing the dependency information as it comes in and not waiting for the dependency generation to finish. `DepStream` abstracts over the possible output handles, which is either a file or the stdout handle. Writing to a file requires temporary file paths, thus `DepStream` must provide a way to perform clean up when dependency processing finished or when an error is thrown for any reason. We further decouple the rendering and writing of the result from the dependency generation, localising side effects and making the code slightly more readable. The testsuite now also handles `ghc -M` writing to stdout. We add a test for each combination of writing to stdout and file, except for writing both makefile and json. While it probably works, is really undefined behaviour. Closes #27937 - - - - - fbd49db2 by Sylvain Henry at 2026-11-17T09:27:09-05:00 Link the on-demand iserv without --gc-sections GHC links an iserv program each time a session needs the external interpreter. The link is static, against the ghci library and the boot libraries. Like all executable links, it passed -Wl,--gc-sections to a GNU linker. On libraries built with -split-sections (the release bindists), the section garbage collection of ld.bfd is the largest part of that link: with binutils 2.45, the link takes 3 times longer with --gc-sections than without. The program is temporary and its size is not important. Thus the iserv link does not use --gc-sections. Other executable links do not change. In CI, each ext-interp or ghci-ext test takes 12 to 18 times longer in the x86_64-linux-fedora43-release test job (split sections) than in the x86_64-linux-deb13-validate test job (no split sections) on the same runner, while a normal-way test takes the same time in both. This link is most of that difference. See Note [No --gc-sections for the on-demand iserv] in GHC.Runtime.Interpreter.C. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> - - - - - 09c965e2 by mangoiv at 2026-11-17T09:27:51-05:00 ci: make tests-primops run on marge CI test primops dispatch was disabled on the *full-ci group label to avoid dispatching for some of its configs but wasn't reenabled for marge ci runs which it ought to run Fixes #27765 - - - - - 83038fbe by David Eichmann at 2026-11-17T09:28:32-05:00 test driver refactor: replace `.format(**locals())` with f-string - - - - - e41ceda2 by Simon Peyton Jones at 2026-11-17T11:32:40-05:00 Better desugaring for bang patterns Ticket #27862 showed that we were desugaring bang patterns in a silly way, which led to bad code. This small fix makes it much better. I ended up refactoring `decomposeFirstPat` to be of type (LPat -> LPat) instead of (Pat -> Pat) which made it much easier to keep the locations correct. On the way I also fixed #28137, a missing warning. See Note [Tidying patterns] which has new (TP1) and (TP2) and Note [Grouping equations] especially (GE1) - - - - - f56fc151 by Hannes Siebenhandl at 2026-11-17T11:32:41-05:00 Use Set operations over Foldable operations Use `O(log n)` operations over `O(n)` for all call-sites of `hsc_all_home_unit_ids`. - - - - - 46 changed files: - .gitlab-ci.yml - + changelog.d/T27137 - + changelog.d/T27862 - + changelog.d/iserv-no-gc-sections.md - + changelog.d/make-depends-streaming-output - compiler/GHC/Driver/Downsweep.hs - compiler/GHC/Driver/DynFlags.hs - compiler/GHC/Driver/Make.hs - compiler/GHC/Driver/MakeFile.hs - compiler/GHC/Driver/Session.hs - compiler/GHC/HsToCore/Match.hs - compiler/GHC/HsToCore/Match/Literal.hs - compiler/GHC/HsToCore/Monad.hs - compiler/GHC/HsToCore/Pmc.hs - compiler/GHC/Iface/Load.hs - compiler/GHC/Iface/Recomp.hs - compiler/GHC/Linker/Executable.hs - compiler/GHC/Runtime/Interpreter/C.hs - docs/users_guide/separate_compilation.rst - testsuite/driver/my_typing.py - testsuite/driver/testglobals.py - testsuite/driver/testlib.py - testsuite/tests/ado/T22483.stderr - + testsuite/tests/deSugar/should_compile/T27862.hs - + testsuite/tests/deSugar/should_compile/T27862.stderr - + testsuite/tests/deSugar/should_compile/T27862a.hs - + testsuite/tests/deSugar/should_compile/T27862a.stderr - + testsuite/tests/deSugar/should_compile/T27862b.hs - + testsuite/tests/deSugar/should_compile/T27862b.stderr - + testsuite/tests/deSugar/should_compile/T27862c.hs - + testsuite/tests/deSugar/should_compile/T27862c.stderr - + testsuite/tests/deSugar/should_compile/T27862d.hs - + testsuite/tests/deSugar/should_compile/T27862d.stderr - + testsuite/tests/deSugar/should_compile/T28137.hs - + testsuite/tests/deSugar/should_compile/T28137.stderr - testsuite/tests/deSugar/should_compile/all.T - testsuite/tests/deSugar/should_run/dsrun008.stderr - testsuite/tests/driver/mkdepend/all.T - testsuite/tests/driver/mkdepend/mkdepend_mhu01.dep-json → testsuite/tests/driver/mkdepend/mkdepend_mhu01a.dep-json - testsuite/tests/driver/mkdepend/mkdepend_mhu01.dep-makefile → testsuite/tests/driver/mkdepend/mkdepend_mhu01a.dep-makefile - + testsuite/tests/driver/mkdepend/mkdepend_mhu01b.stderr - + testsuite/tests/driver/mkdepend/mkdepend_mhu01c.stderr - + testsuite/tests/driver/mkdepend/mkdepend_mhu01d.dep-makefile - + testsuite/tests/driver/mkdepend/mkdepend_mhu01d.stderr - testsuite/tests/pmcheck/should_compile/T24234.stderr - testsuite/tests/typecheck/should_fail/tcfail203a.stderr The diff was not included because it is too large. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/14d34c7cddbf42ccfadc772b83a8b4c... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/14d34c7cddbf42ccfadc772b83a8b4c... 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