[GHC] #9178: improve orphan instance warning
GHC
ghc-devs at haskell.org
Fri Jun 6 11:48:21 UTC 2014
#9178: improve orphan instance warning
------------------------------------+-------------------------------------
Reporter: fphh | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
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.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9178>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list