[GHC] #9813: Error when reifying type constructor

GHC ghc-devs at haskell.org
Wed Feb 17 13:34:04 UTC 2016


#9813: Error when reifying type constructor
-------------------------------------+-------------------------------------
        Reporter:  owst              |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  7.8.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1899
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Really? With the `$(return [])` the above code works in 7.8, 7.10 and
 HEAD.  I think.

 I'm a bit surprised it doesn't work without the `$(return [])`, because
 data types are typechecked before value declarations.  But it doesn't.

 If that worked, would you be happy?

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


More information about the ghc-tickets mailing list