Skip to content

Export action on type family exports with constructors (Tyfam(..)) #2635

Closed
@googleson78

Description

@googleson78

Your environment

HLS version:
1.5.1
Which OS do you use:
Debian
Which LSP client (editor/plugin) do you use:
LanguageClient-neovim

resolver: nightly-2021-09-12

Steps to reproduce

Add a file with a type family, with an empty export list. Use the "export definition" action on the type family. HLS generates an export with exported constructors, even though type families don't have constructors.

Expected behaviour

An export without constructors.

Actual behaviour

An export with constructors, which don't exist, causing an additional warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidelevel: easyThe issue is suited for beginnerstype: 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