[GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

View: New views
5 Messages — Rating Filter:   Alert me  

[GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2433: standalone deriving Typeable shouldn't need data constructors in scope?
------------------------+---------------------------------------------------
    Reporter:  claus    |       Owner:          
        Type:  bug      |      Status:  new    
    Priority:  normal   |   Component:  Compiler
     Version:  6.9      |    Severity:  normal  
    Keywords:           |    Testcase:          
Architecture:  Unknown  |          Os:  Unknown
------------------------+---------------------------------------------------
 customary artificial example:
 {{{
 {-# LANGUAGE StandaloneDeriving #-}
 {-# LANGUAGE DeriveDataTypeable #-}

 import Data.Typeable(Typeable1)
 import qualified Prelude()
 import Prelude(Maybe)

 deriving instance Typeable1 Maybe
 }}}
 `GHCi, version 6.9.20080709`:
 {{{
 DTR.hs:8:0:
     The data constructors of `Maybe' are not all in scope
       so you cannot derive an instance for it
     In the stand-alone deriving instance for `Typeable1 Maybe'
 Failed, modules loaded: none.
 }}}
 Does `Typeable` really need access to the '''data''' constructors?

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2433>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2433: standalone deriving Typeable shouldn't need data constructors in scope?
----------------------+-----------------------------------------------------
 Reporter:  claus     |          Owner:        
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:  6.10.1
Component:  Compiler  |        Version:  6.9    
 Severity:  normal    |     Resolution:        
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  Unknown
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.10.1

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2433#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2433: standalone deriving Typeable shouldn't need data constructors in scope?
--------------------------------------------+-------------------------------
 Reporter:  claus                           |          Owner:  igloo  
     Type:  merge                           |         Status:  new    
 Priority:  normal                          |      Milestone:  6.10.1
Component:  Compiler                        |        Version:  6.9    
 Severity:  normal                          |     Resolution:        
 Keywords:                                  |     Difficulty:  Unknown
 Testcase:  typecheck/should_compile/T2433  |   Architecture:  Unknown
       Os:  Unknown                         |  
--------------------------------------------+-------------------------------
Changes (by simonpj):

  * testcase:  => typecheck/should_compile/T2433
  * owner:  => igloo
  * type:  bug => merge

Comment:

 Good point.  Fixed by
 {{{
 Mon Aug  4 15:15:03 BST 2008  simonpj@...
   * Fix Trac #2433 (deriving Typeable)
 }}}
 Simon

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2433#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2433: standalone deriving Typeable shouldn't need data constructors in scope?
--------------------------------------------+-------------------------------
 Reporter:  claus                           |          Owner:            
     Type:  merge                           |         Status:  new      
 Priority:  normal                          |      Milestone:  6.8 branch
Component:  Compiler                        |        Version:  6.9      
 Severity:  normal                          |     Resolution:            
 Keywords:                                  |     Difficulty:  Unknown  
 Testcase:  typecheck/should_compile/T2433  |   Architecture:  Unknown  
       Os:  Unknown                         |  
--------------------------------------------+-------------------------------
Changes (by igloo):

  * owner:  igloo =>
  * milestone:  6.10.1 => 6.8 branch

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2433#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [GHC] #2433: standalone deriving Typeable shouldn't need data constructors in scope?

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#2433: standalone deriving Typeable shouldn't need data constructors in scope?
--------------------------------------------+-------------------------------
 Reporter:  claus                           |          Owner:                  
     Type:  merge                           |         Status:  closed          
 Priority:  normal                          |      Milestone:  6.8 branch      
Component:  Compiler                        |        Version:  6.9            
 Severity:  normal                          |     Resolution:  fixed          
 Keywords:                                  |     Difficulty:  Unknown        
 Testcase:  typecheck/should_compile/T2433  |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple                |  
--------------------------------------------+-------------------------------
Changes (by igloo):

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

Comment:

 We won't be releasing 6.8.4.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2433#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@...
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
LightInTheBox - Buy quality products at wholesale price