-Wredundant-constraints: False positive
GHC produces a warning for the attached source, although it won't compile if the suggested constraints are removed:
redundant-constraint.hs:24:1: warning: [-Wredundant-constraints]
• Redundant constraints: (KnownNat 42, Capture 42 p)
• In the type signature for:
foo :: Foo 42
|
24 | foo :: Foo 42
Trac metadata
Trac field | Value |
---|---|
Version | 8.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Type checker) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |