[Git][ghc/ghc][wip/az/epa-remove-epannnotused] EPA: Remove EpAnnNotUsed

Alan Zimmerman (@alanz) gitlab at gitlab.haskell.org
Sat Nov 25 15:36:43 UTC 2023



Alan Zimmerman pushed to branch wip/az/epa-remove-epannnotused at Glasgow Haskell Compiler / GHC


Commits:
61fa630b by Alan Zimmerman at 2023-11-25T15:35:15+00:00
EPA: Remove EpAnnNotUsed

We no longer need the EpAnnNotUsed constructor for EpAnn, as we can
represent an unused annotation with an anchor having a EpaDelta of
zero, and empty comments and annotations.

This simplifies code handling annotations considerably.

Updates haddock submodule

Metric Increase:
    parsing001

- - - - -


18 changed files:

- compiler/GHC/Hs.hs
- compiler/GHC/Hs/Binds.hs
- compiler/GHC/Hs/Decls.hs
- compiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/ImpExp.hs
- compiler/GHC/Hs/Pat.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Arrows.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Tc/Deriv/Generate.hs
- testsuite/tests/ghc-api/exactprint/T22919.stderr
- testsuite/tests/ghc-api/exactprint/Test20239.stderr
- testsuite/tests/ghc-api/exactprint/ZeroWidthSemi.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
- testsuite/tests/module/mod185.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/61fa630b983f5c7140e700245ed1029996f27045

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/61fa630b983f5c7140e700245ed1029996f27045
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/20231125/0adb61c2/attachment.html>


More information about the ghc-commits mailing list