Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Exhaustiveness messages for GADTs suggest patterns that will not type check #6801
Original bug ID: 6801
Exhaustiveness messages for GADTs are a bit off. They will suggest patterns need to be inserted for constructors that are not actually legal to insert because they will not type check.
A simple example:
type _ value =
The resulting message:
But of course, inserting a pattern for Float _ won't go very well!