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

Incorrect renaming between varsym and varid #3403

Open
aavogt opened this issue Dec 15, 2022 · 1 comment
Open

Incorrect renaming between varsym and varid #3403

aavogt opened this issue Dec 15, 2022 · 1 comment
Assignees
Labels
component: hls-rename-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@aavogt
Copy link

aavogt commented Dec 15, 2022

With hls 1.8 from ghcup:

fun a b = a `fun` b
(&) a b = a `(&)` b   -- renamed fun to (&)
& a b = a `&` b       -- renamed fun to &
(&) a b = a & b -- desired output from either renaming

Going the other way also produces syntax errors:

(&) a b = a & b
(fun) a b = a fun b -- renamed & to fun
fun a b = a `fun` b -- desired output
@aavogt aavogt added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Dec 15, 2022
@michaelpj
Copy link
Collaborator

cc @OliverMadine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-rename-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

4 participants