[GHC] #7494: Allow compatible type synonyms to be the return type of a GADT data constructor.

GHC cvs-ghc at haskell.org
Thu Jan 17 07:46:11 CET 2013


#7494: Allow compatible type synonyms to be the return type of a GADT data
constructor.
----------------------------------------+-----------------------------------
    Reporter:  topi                     |       Owner:                  
        Type:  feature request          |      Status:  new             
    Priority:  normal                   |   Milestone:                  
   Component:  Compiler (Type checker)  |     Version:  7.4.1           
    Keywords:  GADT                     |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple         |     Failure:  None/Unknown    
  Difficulty:  Unknown                  |    Testcase:                  
   Blockedby:                           |    Blocking:                  
     Related:                           |  
----------------------------------------+-----------------------------------

Comment(by topi):

 Replying to [comment:1 simonpj]:
 I stumbled upon this while writing a monad transformer. I do not have any
 urgent reason to have this feature. It just seemed like a natural
 extension that would be simple to add.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7494#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list