#3888: Suggest -XGeneralizedNewtypeDeriving for newtypes
----------------------------------------------+-----------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.1
Resolution: fixed | Keywords:
Difficulty: | Os:
Unknown/Multiple
Testcase: typecheck/should_fail/tcfail117 | Architecture:
Unknown/Multiple
Failure: None/Unknown |
----------------------------------------------+-----------------------------
Changes (by simonpj):
* status: new => closed
* testcase: => typecheck/should_fail/tcfail117
* resolution: => fixed
Comment:
Good idea. Fixed by
{{{
Mon Mar 1 11:15:55 GMT 2010 [email protected]
* Suggest -XGeneralizedNewtypeDeriving (fix Trac #3888)
If we can't derive a type, but it's a reasonable possibility that
newtype deriving would do the job, suggest it.
A little refactoring too, moving non_iso_class to top level,
and putting it with std_class_via_iso.
M ./compiler/typecheck/TcDeriv.lhs -12 +23
}}}
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3888#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs