Skip to content

Wingman removes functions in where clauses during refine hole #2183

Closed
@santiweight

Description

@santiweight
foo = undefined
  where
    bar :: Maybe a -> b
    bar = _
      where
        pleaseDontHurtMe = undefined

Refine hole on the only hole (bar = _)

You get:

foo = undefined
  where
    bar :: Maybe a -> b
    bar m_a = _we

@isovector why did you hurt my nested where function :(

This might well be an issue with a Wingman dependency, I don't know Wingman's internals well enough to judge...

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: wingmantype: 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