[GHC] #13885: Template Haskell doesn't freshen GADT type variables properly

GHC ghc-devs at haskell.org
Tue Jun 27 23:15:41 UTC 2017


#13885: Template Haskell doesn't freshen GADT type variables properly
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Why does this matter?  If I write
 {{{
 data T a b where
   MkT :: [a] -> b -> x -> T x a
 }}}
 that's absolutely fine.  The 'a' and 'b' in the `MkT` signature have
 nothing to do with the variables in the head.  The latter do not scope
 over the constructors.  Right?

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


More information about the ghc-tickets mailing list