#5416: Local modules and Template Haskell declaration splices
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  _|_         
   Component:  Compiler          |      Version:  7.2.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by batterseapower):

 If you only want your helper to be visible in a number of value
 declarations, you can just have your TH generate this:

 {{{
 (real_fun1, real_fun2) = (real_fun1, real_fun2)
     where real_fun1 = ...; real_fun2 = ...; helper = ...
 }}}

 In the case where some of the declarations are classes/instances the
 situation is less clear.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to