Skip to content

Infix backticked holes get their backticks deleted once filled #1690

Closed
@masaeedu

Description

@masaeedu

Steps to reproduce

Write this:

data A = A

foo :: A -> A -> A
foo A A = A

test :: A -> A -> A
test a1 a2 = a1 `_` a2

Open up the context menu on the hole and select "replace with foo".

Expected behaviour

The implementation should now look like:

test :: A -> A -> A
test a1 a2 = a1 `foo` a2

Actual behaviour

The implementation now looks like:

test :: A -> A -> A
test a1 a2 = a1 foo a2

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions