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

Unexpected replacement while mixed infix and parenthesis #118

Open
July541 opened this issue Mar 2, 2022 · 0 comments
Open

Unexpected replacement while mixed infix and parenthesis #118

July541 opened this issue Mar 2, 2022 · 0 comments

Comments

@July541
Copy link
Contributor

July541 commented Mar 2, 2022

For x = (Just 3 `elem`) [], it should result x = Just 3 `elem` [], but now got x = Just 3 elem [].

Here is the substitute param from HLS:

Replace {rtype = Expr, pos = SrcSpan {startLine = 1, startCol = 5, endLine = 1, endCol = 23}, subts = [("x",SrcSpan {startLine = 1, startCol = 6, endLine = 1, endCol = 12}),("op",SrcSpan {startLine = 1, startCol = 13, endLine = 1, endCol = 19}),("y",SrcSpan {startLine = 1, startCol = 21, endLine = 1, endCol = 23})], orig = "x op y"}]

GHC version: 8.10.7
apply-refact: 0.9.3.0

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

No branches or pull requests

1 participant