[GHC] #9269: Type families returning quantified types

GHC ghc-devs at haskell.org
Sat Jul 5 18:48:14 UTC 2014


#9269: Type families returning quantified types
------------------------------------+-------------------------------------
       Reporter:  pumpkin           |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.8.2
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 Is there a fundamental reason for not being able to use quantification in
 a type family? I'd very much like to be able to do it, obviously turning
 on RankNTypes if necessary.

 I'm looking for things like this:

 {{{#!haskell
 type family Foo (x :: Bool) where
   Foo True = forall a. [a]
   Foo False = ()
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9269>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list