[GHC] #11078: Access to module renaming with reifyModule, in TemplateHaskell

GHC ghc-devs at haskell.org
Sat Nov 21 15:19:22 UTC 2015


#11078: Access to module renaming with reifyModule, in TemplateHaskell
-------------------------------------+-------------------------------------
        Reporter:  cipher1024        |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Template Haskell  |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by osa1):

 I don't have any progress yet but I just wanted to say that passing
 `HsModule`(or some fields of it) around may not be very bad, and GHC is
 already doing similar things. For example, `DataCon` has a `[HsSrcBang]`
 field which is carried around until Cmm(or maybe even backend code
 generation) stage I think. `HsSrcBang` is this:

 {{{#!haskell
 data HsSrcBang =
   HsSrcBang (Maybe SourceText)
             SrcUnpackedness
             SrcStrictness
 }}}

 Some(maybe all) parts of this are coming from the parser.

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


More information about the ghc-tickets mailing list