Skip to content

The type of selected expression #514

@nartamonov

Description

@nartamonov

Since Haskell is rather expression-heavy language and sometimes expressions in our programs can be complicated, it would be invalueable if this extension allows to select arbitrary expression and show its type. The feature is one of the most demanded and useful in other IDEs for "functional" languages. For example, IntelliJ IDEA (with Scala plugin) can show the type of Scala expression under selection:

image

Importantly that the showed type above is already inferred and concrete, in contrast to the generic type of foldLeft function which we can find out by hovering over function name:

image

That's why "Type information and documentation on hover" (already implemented in extension) does not replace "Type of selected expression" functionality.

I'm novice Haskell programmer and like the language a lot. So I really miss that feature when learning Haskell. I had many years of experience in Scala and use the feature constantly. It helps a lot when you work on real-world projects.

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