haskell / haskell/haskell-language-server
Inferred types for polymorphic functions sometimes produce `Any` instead of type variables
Open
component: ghcide-type-lenses
type: enhancement
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
I wanted to play around with the new functionality to insert type signatures. The following:
```haskell
hello = print
```
surprises me, as when I add a type signature with a code action, I get:
```haskell
hello :: GHC.Types.Any -> IO ()
hello = print
```
which is mostly certainly not what I'd expect!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.