haskell / haskell/haskell-language-server

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

Open
#806 10 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.