Yeah, I should be less down on -Wall there. I’ll edit it.
For clarity: it’s easy to write case statements or pattern matches in Haskell which are undecidable, so it’s not possible to ensure exhaustiveness in general… but it can do a good job for simple cases like this.
But it does!
Gives
Yeah, I should be less down on -Wall there. I’ll edit it.
For clarity: it’s easy to write case statements or pattern matches in Haskell which are undecidable, so it’s not possible to ensure exhaustiveness in general… but it can do a good job for simple cases like this.