haskell / haskell/haskell-language-server

Inferred types for polymorphic functions sometimes produce `Any` instead of type variables

Aperta
#806 10 commenti 1 reazione 0 assegnatari Vedi su GitHub
component: ghcide-type-lenses type: enhancement
Lingua principale
Haskell
Stelle
3k
Fork
455
Merge medio
2g 19h
PR unite (30g)
11

Descrizione

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!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.