[Git][ghc/ghc][wip/9.12-alpha2] 8 commits: Put RdrName in the foExt field of FieldOcc

Zubin (@wz1000) gitlab at gitlab.haskell.org
Thu Oct 31 11:43:43 UTC 2024



Zubin pushed to branch wip/9.12-alpha2 at Glasgow Haskell Compiler / GHC


Commits:
d5390862 by Hassan Al-Awwadi at 2024-10-31T17:13:29+05:30
Put RdrName in the foExt field of FieldOcc

The main purpose of this commit is to rip RdrName out of FieldOcc, in
accordance with #21592, and as a side note it has simplified the method
we use to deal with ambiguity somewhat.

To do the first, we make FieldOccs store (LIdP p) instead of always
storing Located RdrName, and moved the readername to the extension
points where necessary.

For the second, well, we just turn an ambiguous RdrName into a unbound
Name through mkUnboundName. Later during disambiguateRecordBinds of the
type checking phase, we will try and do type-directed disambiguation based
on the rdrName field (for now), so this hack works out fine.

See Note [Ambiguous FieldOcc in record updates] for more details.

There are two additional minor changes in this commit:
*  The HsRecSel constructor of HsExpr has been moved to the extension
constuctors, since its really GHC specific.
*  HsProjection no longer has a Located DotFieldOcc as a field, but just a
regular DotFieldOcc, since DotFieldOcc already wraps a located
FieldLabelString

co-authored by: @Jade       <Jade512 at proton.me>
                @alt-romes  <rodrigo.m.mesquita at gmail.com>

(cherry picked from commit 1587cccfe7c3c1db3ccc48437b47ccb6ae215701)

- - - - -
c580b505 by Cheng Shao at 2024-10-31T17:13:29+05:30
driver: fix foreign stub handling logic in hscParsedDecls

This patch fixes foreign stub handling logic in `hscParsedDecls`.
Previously foreign stubs were simply ignored here, so any feature that
involve foreign stubs would not work in ghci (e.g. CApiFFI). The patch
reuses `generateByteCode` logic and eliminates a large chunk of
duplicate logic that implements Core to bytecode generation pipeline
here. Fixes #25414.

(cherry picked from commit e70009bc5b388ed02db12ee7a99bca0e4c283c87)

- - - - -
7202e2ac by Andrew Lelechenko at 2024-10-31T17:13:29+05:30
hadrian: allow -Wunused-imports for text package

(cherry picked from commit 90746a591919fc51a0ec9dec58d8f1c8397040e3)

- - - - -
4595620a by Andrew Lelechenko at 2024-10-31T17:13:29+05:30
Bump text submodule to 2.1.2

(cherry picked from commit 853050c386ff8634b950204edf4c7f8d973f9a89)

- - - - -
ccd4f869 by Zubin Duggal at 2024-10-31T17:13:29+05:30
configure: Set release version to 9.12.0 instead of 9.12.

This means our alphas will be properly named.

- - - - -
ec2f40b4 by Zubin Duggal at 2024-10-31T17:13:29+05:30
Bump binary submodule to 0.8.9.2

(cherry picked from commit 7199869a52ab45e8856658248bf807954d58cc20)

- - - - -
d2a10e25 by Ben Gamari at 2024-10-31T17:13:29+05:30
Bump process submodule to v1.6.25.0

(cherry picked from commit 18f532f3ed021fff9529f50da2006b8a8d8b1df7)

- - - - -
c0eb35df by Zubin Duggal at 2024-10-31T17:13:29+05:30
testsuite: normalise execvp vs exec differences in process tests

Fixes #25431

(cherry picked from commit a23d8e73166725b699af88a36e97c63b2a0ede25)

- - - - -


30 changed files:

- compiler/GHC/Driver/Main.hs
- compiler/GHC/Hs/Binds.hs
- compiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/Extension.hs
- compiler/GHC/Hs/Instances.hs
- compiler/GHC/Hs/Pat.hs
- compiler/GHC/Hs/Syn/Type.hs
- compiler/GHC/Hs/Type.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Docs.hs
- compiler/GHC/HsToCore/Expr.hs
- compiler/GHC/HsToCore/Quote.hs
- compiler/GHC/HsToCore/Ticks.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Linker/Loader.hs
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/Env.hs
- compiler/GHC/Rename/Expr.hs
- compiler/GHC/Rename/Fixity.hs
- compiler/GHC/Rename/HsType.hs
- compiler/GHC/Rename/Pat.hs
- compiler/GHC/Tc/Gen/Expr.hs
- compiler/GHC/Tc/Gen/Head.hs
- compiler/GHC/Tc/Gen/Pat.hs
- compiler/GHC/Tc/TyCl/Utils.hs
- compiler/GHC/Tc/Types/Origin.hs
- compiler/GHC/Tc/Zonk/Type.hs
- compiler/GHC/ThToHs.hs
- compiler/Language/Haskell/Syntax/Expr.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/728a0bf10026e8629c16e9f5ce9ebfe73628a8a6...c0eb35df4663386e11820c80d6637c61ac75a21e

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/728a0bf10026e8629c16e9f5ce9ebfe73628a8a6...c0eb35df4663386e11820c80d6637c61ac75a21e
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241031/41949285/attachment.html>


More information about the ghc-commits mailing list