apply-refact
apply-refact copied to clipboard
Unexpected replacement while mixed infix and parenthesis
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