apply-refact icon indicating copy to clipboard operation
apply-refact copied to clipboard

Unexpected replacement while mixed infix and parenthesis

Open July541 opened this issue 3 years ago • 0 comments

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

July541 avatar Mar 02 '22 13:03 July541