[Git][ghc/ghc][wip/az/locateda-epa-improve-2023-07-15] 9 commits: EPA: remove AnnEofComment

Alan Zimmerman (@alanz) gitlab at gitlab.haskell.org
Fri Jul 28 22:35:59 UTC 2023



Alan Zimmerman pushed to branch wip/az/locateda-epa-improve-2023-07-15 at Glasgow Haskell Compiler / GHC


Commits:
99d37567 by Alan Zimmerman at 2023-07-27T21:04:28+01:00
EPA: remove AnnEofComment

It is no longer used

- - - - -
998c418d by Alan Zimmerman at 2023-07-28T19:40:53+01:00
EPA: make locA a function, not a field name

- - - - -
124a27e7 by Alan Zimmerman at 2023-07-28T20:21:33+01:00
EPA: generalise reLoc

- - - - -
5a5fbaf4 by Alan Zimmerman at 2023-07-28T23:31:17+01:00
Put BufSpan into RealSrcSpan

This has been superseded by !9473, which moved BufSpan into EpaSpan in
EpaLocation

Start on making LocatedN more direct

Using EpaLocation instead of Anchor

Via a synonym initially, to prove the concept

Variants of AnnSortKey

For future, just a list of which type comes next.
Example for ValBinds

EPA: Explicitly capture EOF Location in AnnsModule

And also get rid of EpaEofComment.

- - - - -
98dc8476 by Alan Zimmerman at 2023-07-28T23:31:21+01:00
[EPA] Simplify noAnnSrcSpanDP0

- - - - -
3d2586a1 by Alan Zimmerman at 2023-07-28T23:31:21+01:00
Clean up addTrailingCommaN

Remove unused parameter

- - - - -
f8fd74d1 by Alan Zimmerman at 2023-07-28T23:31:21+01:00
EPA: Move TrailingAnns to the top of FieldOcc

- - - - -
0e95b0af by Alan Zimmerman at 2023-07-28T23:31:21+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.

- - - - -
663d596c by Alan Zimmerman at 2023-07-28T23:31:21+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.

- - - - -


30 changed files:

- compiler/GHC/Data/BooleanFormula.hs
- compiler/GHC/Hs/Decls.hs
- compiler/GHC/Hs/Dump.hs
- compiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/Extension.hs
- compiler/GHC/Hs/Type.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Docs.hs
- compiler/GHC/HsToCore/Monad.hs
- compiler/GHC/HsToCore/Quote.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Iface/Ext/Utils.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs
- compiler/GHC/Parser/Lexer.x
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Parser/PostProcess/Haddock.hs
- compiler/GHC/Parser/Types.hs
- compiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/Env.hs
- compiler/GHC/Rename/Expr.hs
- compiler/GHC/Rename/HsType.hs
- compiler/GHC/Rename/Module.hs
- compiler/GHC/Rename/Names.hs
- compiler/GHC/Rename/Pat.hs
- compiler/GHC/Rename/Splice.hs
- compiler/GHC/Rename/Utils.hs
- compiler/GHC/Runtime/Eval.hs
- compiler/GHC/Tc/Deriv.hs
- compiler/GHC/Tc/Deriv/Generate.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/6320a706f4fbc12a02d0249aa13e0643c1efb4bf...663d596cd3c214cb63af96b11bdc31e1d3856492

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/6320a706f4fbc12a02d0249aa13e0643c1efb4bf...663d596cd3c214cb63af96b11bdc31e1d3856492
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/20230728/a258c62f/attachment-0001.html>


More information about the ghc-commits mailing list