Skip to content

Conversation

amesgen
Copy link
Member

@amesgen amesgen commented Sep 20, 2021

Closes #794
Closes #768 (promoted infix data constructors)
Closes #659 Closes #709 Closes #705 (RecordDot* stuff)


The most significant in ghc-lib-parser-9.2 is EPA (exact print annotations). This blog post gives a good overview. A few points:

  • Most constructs are no longer wrapped in a Located, but rather in a GenLocated (SrcSpanAnn' a), where SrcSpanAnn' ~ (a, SrcSpan). GHC.Parser.Annotation gives a good overview of the new combinators for these types.
  • API annotations are contained in the AST, so we can remove our Anns stuff.
  • TTG (trees that grow) fields are now way more often actually used for EPAs, rather than being NoExtField.

EDIT: This PR introduces a benign style issue: #810

@amesgen amesgen force-pushed the amesgen/ghc-9.2 branch 2 times, most recently from 4e0087b to 341db9a Compare September 27, 2021 11:44
@amesgen amesgen force-pushed the amesgen/ghc-9.2 branch 2 times, most recently from 51cc038 to 4635385 Compare October 18, 2021 08:45
@amesgen amesgen marked this pull request as ready for review October 18, 2021 10:57
@amesgen
Copy link
Member Author

amesgen commented Oct 31, 2021

Upgrading from 9.2.1-rc1 to 9.2.1 only required two minor changes: https://gist.github.com/amesgen/c77ab54959903ebc5e3734ad630e8c93

The only thing missing now is mrkkrp/ghc-syntax-highlighter#24

@mrkkrp
Copy link
Member

mrkkrp commented Oct 31, 2021

Is there something that still prevents us from testing with 9.2.1 on CI?

@amesgen
Copy link
Member Author

amesgen commented Oct 31, 2021

@amesgen amesgen force-pushed the amesgen/ghc-9.2 branch 2 times, most recently from 430af6a to f83c47f Compare November 13, 2021 13:57
Copy link
Member

@mrkkrp mrkkrp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is another round of review, since I saw some new changes. I think we are very close to finally merging this into master.

@amesgen amesgen force-pushed the amesgen/ghc-9.2 branch 3 times, most recently from 4bfdcea to d1ad5fe Compare November 16, 2021 16:03
@mrkkrp mrkkrp merged commit 11cda4c into master Nov 16, 2021
@mrkkrp mrkkrp deleted the amesgen/ghc-9.2 branch November 16, 2021 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants