generalized newtype deriving not working with polymorphic component
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?
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.1 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |