#1608: Newtype deriving error messages coming out too late
-------------------------------------+--------------------------------------
 Reporter:  simonpj                  |          Owner:  simonpj    
     Type:  bug                      |         Status:  closed     
 Priority:  normal                   |      Milestone:  6.10 branch
Component:  Compiler (Type checker)  |        Version:  6.6.1      
 Severity:  normal                   |     Resolution:  fixed      
 Keywords:                           |     Difficulty:  Unknown    
 Testcase:  drvfail012               |   Architecture:  Unknown    
       Os:  Unknown                  |  
-------------------------------------+--------------------------------------
Changes (by simonpj):

  * testcase:  => drvfail012
  * status:  new => closed
  * resolution:  => fixed

Comment:

 And indeed this is just what GHC (6.8 and HEAD) now does:
 {{{
 Der.hs:3:0:
     No instance for (Eq (Ego a))
       arising from the 'deriving' clause of a data type declaration
                    at Der.hs:3:0-35
     Possible fix: add an instance declaration for (Eq (Ego a))
     When deriving the instance for (Ord (Ego a))
 }}}
 So it's fixed, with no merging to be done.  I've added a test case to the
 test suite though.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1608#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

Reply via email to