[Git][ghc/ghc][wip/az/locateda-epa-improve-2023-07-15] 18 commits: EPA: Capture full range for a CaseAlt Match
Alan Zimmerman (@alanz)
gitlab at gitlab.haskell.org
Sun Jul 16 22:33:12 UTC 2023
Alan Zimmerman pushed to branch wip/az/locateda-epa-improve-2023-07-15 at Glasgow Haskell Compiler / GHC
Commits:
e30a9e11 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Capture full range for a CaseAlt Match
- - - - -
378b3fbc by Alan Zimmerman at 2023-07-16T22:51:39+01:00
Clean up addTrailingCommaN
Remove unused parameter
- - - - -
a1d535b5 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
WIP
- - - - -
3e6baeff by Alan Zimmerman at 2023-07-16T22:51:39+01:00
[EPA] Introduce HasTrailing in ExactPrint
Just plumbed through, not being used yet
- - - - -
3acf8031 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA use [TrailingAnn] in enterAnn
And remove it from ExactPrint (LocatedN RdrName)
- - - - -
5fa3edb1 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA Use full range for Anchor, and do not widen for [TrailingAnn]
- - - - -
b69e69f0 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Move TrailingAnns from last match to FunBind
- - - - -
bb6b5856 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: In HsDo, put TrailingAnns at top of LastStmt
- - - - -
588b61b8 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: More extending anchors to full span in Parser.y
- - - - -
84320548 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Move TrailingAnns to the top of FieldOcc
- - - - -
4c42fd68 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Fix simple tests
- - - - -
b3179c06 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: do not convert comments to deltas when balancing.
It seems its not needed with the new approach
- - - - -
7506b46e by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Improve annotation management in getMonoBind
Ensure the LHsDecl for a FunBind has the correct leading comments and
trailing annotations.
See the added note for details.
- - - - -
63ce7d3a by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: deal with fallout from getMonoBind
- - - - -
404f9a65 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA fix captureLineSpacing
- - - - -
6492244f by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA print any comments in the span before exiting it
- - - - -
3acbeee9 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: getting rid of tweakDelta
WIP at present
- - - - -
22090351 by Alan Zimmerman at 2023-07-16T22:51:39+01:00
EPA: Add '=>' to TrailingAnn
This is used as a trailing annotation in a context.
Add its normal and unicode variants.
Note that we keep the parsed representation the same, but make use of
it when exact printing.
- - - - -
11 changed files:
- compiler/GHC/Hs/Type.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/ThToHs.hs
- testsuite/tests/ghc-api/exactprint/Test20239.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
- testsuite/tests/parser/should_compile/DumpParsedAst.stderr
The diff was not included because it is too large.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/8539da8e72c84293e9f2b1e77f74204ebd8347a5...220903519e0ab34b8903fc13039037e0b3721070
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/8539da8e72c84293e9f2b1e77f74204ebd8347a5...220903519e0ab34b8903fc13039037e0b3721070
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/20230716/04441f45/attachment.html>
More information about the ghc-commits
mailing list