improve orphan instance warning
The current warning
Warning: orphan instance: instance ClassName TypeName
could be improved by suggesting three solutions:
(i) Move the instance declaration to the file, where the class has been declared (ii) Move the instance declaration to the file, where the Type has been declared (iii) Wrap the type with a newtype and declare the instance on the new type.
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.2 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |