[GHC] #11484: Type synonym using -XTypeInType can't be spliced with TH

GHC ghc-devs at haskell.org
Tue Apr 5 11:59:28 UTC 2016


#11484: Type synonym using -XTypeInType can't be spliced with TH
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.0.1-rc1
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 `getInitialKinds` produces the kind of a tycon from a `LHsQTyVars`.
 `kcTyClTyVars` and `tcTyClTyVars` then have to match up the bits in the
 `LHsQTyVars` with this produced kind, so that we know, for example, which
 kind variables are mentioned explicitly in the type and which aren't
 (affecting visibility). That is the point of `splitTelescopeTvs`, simply
 to find the correspondence between the `LHsQTyVars` and the kind of the
 tycon. With `TcTyCon`, we can just store this correspondence -- basically,
 storing in the `TcTyCon` exactly what `kcTyClTyVars` and `tcTyClTyVars`
 need to function.

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


More information about the ghc-tickets mailing list