[GHC] #11832: Allow reify to yield types in the current declaration group

GHC ghc-devs at haskell.org
Fri Sep 9 11:42:54 UTC 2016


#11832: Allow reify to yield types in the current declaration group
-------------------------------------+-------------------------------------
        Reporter:                    |                Owner:
  facundo.dominguez                  |  facundo.dominguez
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.2
       Component:  Template Haskell  |              Version:  7.10.3
      Resolution:                    |             Keywords:  reify
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2286
       Wiki Page:                    |  Phab:D2519
  TemplateHaskell/Reify              |
-------------------------------------+-------------------------------------
Changes (by facundo.dominguez):

 * status:  new => patch


Comment:

 After last fix,
 {{{
 g :: Int
 g = 0

 f = $(do addModFinalizer $ reify (mkName "g") >>= ...
          [| return () |]
      )
 }}}
 couldn't find `g`.

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


More information about the ghc-tickets mailing list