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

More unicode syntax replacements #436

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Lev135
Copy link
Contributor

@Lev135 Lev135 commented Dec 27, 2022

I've refactored UnicodeSyntax step and extended number of replacable symbols. Old replacement rules for ->, :: and => in function type declaration were replaced by more abstract, working for GADTs too. Many other symbols added.

There are some problems with Arrow notation: in official documentation I've found only two operators: -< and -<<. According two the GHC parser lib there is also >>-. I've added appropriate replacement rule without tests.

I've added several base test cases, maybe missed some significant point. I'd be glad for any remarks and corrections.

Issues #3, #81, #93, #408, #418, and #430 are expected to be closed by this PR. If I missed some symbols, let me know, please. I think it's reasonable to add all the unicode syntax support at once

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