Skip to content

Update tree-sitter-haskell#19

Open
brandonchinn178 wants to merge 5 commits intozed-extensions:mainfrom
brandonchinn178:tree-sitter-haskell-update
Open

Update tree-sitter-haskell#19
brandonchinn178 wants to merge 5 commits intozed-extensions:mainfrom
brandonchinn178:tree-sitter-haskell-update

Conversation

@brandonchinn178
Copy link
Copy Markdown
Contributor

Previous commit was from Feb 14 2024. Updating to 0.23.1 from Nov 10 2024. Still old, but a bit newer. Specifically, looks like they did a complete overhaul in May 2024: tree-sitter/tree-sitter-haskell@f8e8da7

Unable to test this; installing as a Zed extension is failing with "Error: Failed to install dev extension: failed to compile grammar 'haskell'", and the zed logs isn't showing anything...

@cla-bot cla-bot bot added the cla-signed label Mar 7, 2026
Copy link
Copy Markdown
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Per CI there seems to be an error with a node in some query which you'd need to look into. Also, you'll have to merge main (you can ignore the incoming changes, as that was just a formatting, nothing of content changed).

Comment thread languages/haskell/locals.scm Outdated
@brandonchinn178 brandonchinn178 force-pushed the tree-sitter-haskell-update branch 7 times, most recently from 57c0dcd to 6e21b2a Compare March 11, 2026 01:38
@MrSubidubi
Copy link
Copy Markdown
Contributor

Looks good overall, thank you!

Could you share a quick before/after for comparison so me (and others who stumble across this) can have a better grasp on what changed?

@brandonchinn178 brandonchinn178 force-pushed the tree-sitter-haskell-update branch from 19ed3a6 to 67dd621 Compare March 26, 2026 21:20
@brandonchinn178
Copy link
Copy Markdown
Contributor Author

@MrSubidubi It's a complete rewrite of the grammar, so it's hard to say exactly what did/did not change. For the most part, the syntax highlighting should be mostly the same as before. There are a few changes, such as proper highlighting of infix qualified functions and some additional highlighting of builtins:

Before:
Screenshot 2026-03-26 at 5 13 10 PM

After:
Screenshot 2026-03-26 at 5 12 47 PM

@brandonchinn178 brandonchinn178 force-pushed the tree-sitter-haskell-update branch 4 times, most recently from 4792542 to 8235399 Compare March 30, 2026 20:39
@brandonchinn178 brandonchinn178 force-pushed the tree-sitter-haskell-update branch from 8235399 to d21b169 Compare April 1, 2026 17:15
@brandonchinn178
Copy link
Copy Markdown
Contributor Author

@MrSubidubi Any idea when you'll have a chance to take a look?

Copy link
Copy Markdown
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Overall looks good, thank you for this and sorry for the delay in review! Was pulled into another project I needed to focus on for a bit. One comment and then we should be good to go!

And this definitely looks way better, thank you!

Comment thread scripts/download_hs_queries.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants