haskell / haskell/haskell-language-server
Inferred types for polymorphic functions sometimes produce `Any` instead of type variables
Offen
component: ghcide-type-lenses
type: enhancement
- Vorherrschende Sprache
- Haskell
- Sterne
- 3k
- Forks
- 455
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.