#2907: generalized newtype deriving not working with polymorphic component
-----------------------------+----------------------------------------------
Reporter:  jeltsch           |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 I’d like generalized newtype deriving to work also with polymorphic
 components like in this example:
 {{{
 {-# LANGUAGE GeneralizedNewtypeDeriving, RankNTypes #-}

 import Control.Monad.Cont

 newtype PolyContT monad o = PolyContT (forall result. ContT result monad
 o)
                             deriving (Monad)
 }}}
 Would this be possible?

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