improve orphan instance warning
|Reported by:||fphh||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
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.