B-Lang-org/bsc

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

Open

#337 opened on Mar 19, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Haskell (178 forks)batch import
good first issue

Repository metrics

Stars
 (1,108 stars)
PR merge metrics
 (Avg merge 17d 1h) (18 merged PRs in 30d)

Description

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

Contributor guide