haskell / haskell/haskell-language-server

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

Đang mở
#806 10 bình luận 1 reaction 0 người được giao Xem trên GitHub
component: ghcide-type-lenses type: enhancement
Ngôn ngữ chính
Haskell
Star
3k
Fork
455
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
11

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.