-
cbef021e
by Artem Pelenitsyn at 2026-07-19T07:49:55-04:00
ghc-internal: Lock.hs: fix typo and indentation
-
42918646
by Duncan Coutts at 2026-07-19T07:50:36-04:00
Fix failing test GcStaticPointers for non-moving GC
Minor mistake in asserting something before checking for that same
thing.
Specifically, Bdescr asserts HEAP_ALLOCED_GC, but Bdescr was being used
prior to a guard that checks HEAP_ALLOCED_GC. The solution is just to
move the use of Bdescr after the guard.
Thanks to Simon Jakobi for identifying the problem.
-
b6ce9a30
by Alan Zimmerman at 2026-07-20T21:56:38+01:00
EPA: Keep decls together in ClassDecl
Similar to 1718230f4d3d19d8c49c0e5d496cb0fb6f399528 for HsValBindsLR,
this commit updates ClassDecl so that it no longer splits out the
assorted `LHsDecl GhcPs` until the renamer.
It does this by inserting a type family (separate from the classic TTG one) for this.
So
data TyClDecl
...
| ClassDecl {
...
tcdDecls :: XClassDecls pass
with
type instance XClassDecls GhcPs = [LHsDecl GhcPs]
type instance XClassDecls GhcRn = ClassDeclX GhcRn
type instance XClassDecls GhcTc = ClassDeclX GhcTc
data ClassDeclX pass
= ClassDeclX { tcdSigs :: [LSig pass], -- ^ Methods' signatures
tcdMeths :: LHsBinds pass, -- ^ Default methods
tcdATs :: [LFamilyDecl pass], -- ^ Associated types;
tcdATDefs :: [LTyFamDefltDecl pass], -- ^ Associated type defaults
tcdDocs :: [LDocDecl pass] -- ^ Haddock docs
}
-
b4c361ec
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: ClsInstDecl as list in GhcPs
-
218b6668
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedP from OverlapMode
-
4e31ee51
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedP from CType
-
3df2b928
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedP, last use in WarningTxt
-
27ea7d2a
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedE from WarningCategory
-
8a36810b
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocateE from XCImport and XCExport
-
acf2c17c
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedE from HsRecFields dot
-
0812e4ef
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedE completely, last usage for pats
-
5853d23d
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove AnnList (EpToken "where") usages
This is moving toward removing the parameter from AnnList completely
-
dab1103a
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA remove AnnList (EpToken "rec") usages
-
cfbe84b5
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove last parameterised AnnList usage (EpaLocation)
Also remove the parameter
-
a88da59f
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
TTG: Add extension points to BooleanFormula
They are currently unused, but will be used for exact print annotations next
-
5a1ad325
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Remove LocatedBC / SrcSpanBF
-
a0adbca1
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: remove unused addTrailingAnnToL. Squash appropriately
-
70e08baa
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPS: Remove NoEpTok/NoEpUniTok, using an unhelpful SrcSpan instead
Also introduce helper functions noEpTok and noEpUniTok to serve
as simple replacements in code inserting an token annotation without
location information.
-
874c751b
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Some haddock processing tweaks
-
12f8008e
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
Some haddock exactprint tests
-
78b04333
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: When adding comments honour trailing anns
-
d5f036c5
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA: Uses Parsers.parseModule for exactprint tests
This is the advertised way to parse for use for exact printing in the
ghc-exactprint library, make sure we test using it.
-
cf57b346
by Alan Zimmerman at 2026-07-20T22:09:38+01:00
EPA Fix HsCmdDo exact print with comments
TODO: add test based on proc-do-complex-four-out.hs