Skip to content

complex type variables in hover with GHC 9.2 #2716

Closed
@guibou

Description

@guibou

Type signature in hover with GHC 9.2 are longer what they used to be.

See for example:

image

See the a_aI0wB. With GHC 8.10.7, it was a:

image

Your environment

Which OS do you use:
Linux
Which LSP client (editor/plugin) do you use:
neovim + lsp-config
Describe your project (alternative: link to the project):

Huge proprietary codebase built with bazel with a custom HLS hie setup.

Steps to reproduce

Use hover on a type. However that's not always clear, because sometimes I can observe "short" type variable. In my example, it appen on class and newtype which have type parameters.

Expected behaviour

Type variable should be short. They were used to be named as the type variable in the associated newtype or class.

Actual behaviour

Type variables are long and complex. The starts with the original name, but a noisy suffix is appended.

Include debug information

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