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

贡献者指南