-
-
Notifications
You must be signed in to change notification settings - Fork 401
Description
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:
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:
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.