Skip to content

Hole fits: Don't suggest trivial infinite recursion #1804

Open
@anka-213

Description

@anka-213

It would be nice if hole fits wouldn't suggest trivial infinite recursion.

If I write the code

foobar :: Foo -> Bar
foobar = _

I would almost never want the definition

foobar :: Foo -> Bar
foobar = foobar

Currently, this is the first suggestion it gives.


Originally posted by @anka-213 in #883 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions