-fwarn-redundant-constraints should not be part of -Wall
When I compile existing code with GHC-7.11.20150707 I get lot of "redundant constraints" warnings. Generally I think that this warning can be very useful for minimizing constraints, nonetheless there are good reasons not choose minimal constraints for a type signature.
E.g. if I have to implement Data.Map.singleton I do not need the Ord k constraint for the key type. However, I might add it anyway in order to be able to change the implementation in future such that it uses Ord k dictionary.
Thus I suggest to exclude -fwarn-redundant-constraints from -Wall.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.11 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Type checker) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |