Make pattern synonym export type mismatch a warning
|Reported by:||dfeuer||Owned by:|
|Component:||Compiler (Type checker)||Version:||8.0.1-rc2|
|Type of failure:||GHC rejects valid program||Test Case:|
|Related Tickets:||Differential Rev(s):|
As I understand it, attempting to associate a pattern synonym with a type constructor that it "obviously" doesn't match is an error. This is strange for two reasons:
- An "erroneous" association cannot compromise type safety.
- The test is incomplete.
Therefore, I believe such mismatches should lead to warnings instead of errors.
Change History (6)
comment:1 Changed 13 months ago by
|Cc:||mpickering rdragon added|
|Wiki Page:||→ PatternSynonyms/AssociatingSynonyms|