Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add underscore parsing in numbers for haskell #1020

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Nov 1, 2024

Relevant document that describes what is valid and not: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/numeric_underscores.html

Also added binary literals (0b1010) parsing for haskell.

Test and edge cases are added for haskell parsing.

Before

Screen Shot 2024-11-01 at 22 55 52

After

Screenshot2

Relevant document that describes what is valid and not:
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/numeric_underscores.html

Also added binary literals (0b1010) parsing for haskell.

Test and edge cases are added for haskell parsing.
@alecthomas alecthomas merged commit 5e7b53e into alecthomas:master Nov 1, 2024
2 checks passed
@Gusted Gusted deleted the haskell-underscore-numbers branch November 2, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants