You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, it is really well exposed and makes sense. It belongs to haskell-language-server, the default lsp server backend of this extension so i am gonna move to that repo.
It was already suggested (signal of a nice feature request) in ghcide (the core library of haskell-language-server): https://github.com/haskell/ghcide/issues/70
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.
The text was updated successfully, but these errors were encountered: