haskell / haskell/haskell-language-server

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

未关闭
#806 10 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
component: ghcide-type-lenses type: enhancement
主要语言
Haskell
星标
3k
派生
455
平均合并
2 天 19 小时
30 天内合并 PR
11

描述

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!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。