B-Lang-org/bsc

Better error message for -> instead of => in type signature

開放

#337 建立於 2021年3月19日

 (3 則留言) (0 個反應) (0 位負責人)Haskell (178 個分叉)batch import
good first issue

倉庫指標

星標
 (1,108 顆星)
PR 合併指標
 (平均合併 17天 1小時) (30 天內合併 18 個 PR)

描述

We've seen all sorts of hilarity including things like:

Type error at: d

Expected type: t

Inferred type: (Prelude.IsModule m mType, Prelude.Bits t st) (ironically one of the easier-to-diagnose variants).

I suspect some sort of up-front check that classes aren't where they aren't supposed to be in a type signature would help here. Add comment

貢獻者指南