Skip to content

Wingman is incorrectly not using parentheses in applications #2378

@isovector

Description

@isovector

Given this:

unyo :: DTree d Pair (Pair a) -> Pair (DTree d Pair a) 
unyo (DLeaf pa) = _w4j

when doing auto, wingman now writes

unyo :: DTree d Pair (Pair a) -> Pair (DTree d Pair a) 
unyo (DLeaf (Pair a a')) = Pair DLeaf a DLeaf a'

but it should be

unyo :: DTree d Pair (Pair a) -> Pair (DTree d Pair a) 
unyo (DLeaf (Pair a a')) = Pair (DLeaf a) (DLeaf a')

GHC 8.10, haskell-language-server version: 1.4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

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