Skip to content

Unexpected replacement while mixed infix and parenthesis #118

@July541

Description

@July541

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions