#5416: Local modules and Template Haskell declaration splices
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  bug               |       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 igloo):

 You might want this in regular Haskell too, e.g. you could have `with` be
 a keyword and
 {{{
 with helper = ...
 in instance Foo T where
        m1 x = helper True x
        m2 x = helper False x
 }}}

 Likewise you occasionally want local datatypes etc.

 I don't know whether a "with...in" style syntax or a "submodule" style
 syntax would be better.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5416#comment:2>
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