#1444: Template Haskell: add proper support for qualified names in non-splicing
applications
---------------------------------+------------------------------------------
    Reporter:  SamB              |        Owner:         
        Type:  feature request   |       Status:  new    
    Priority:  normal            |    Milestone:         
   Component:  Template Haskell  |      Version:  6.6.1  
    Severity:  normal            |   Resolution:         
    Keywords:                    |   Difficulty:  Unknown
          Os:  Unknown           |     Testcase:         
Architecture:  Unknown           |  
---------------------------------+------------------------------------------
Comment (by SamB):

 One example that exhibits the problem is:

 {{{
 % (echo import qualified System.IO; ghc -fth -e 'let s = unlines [show
 n++" bottles of beer on the wall, "++show n++" bottles of beer, take one
 down, pass it around, "++show (n-1)++" bottles of beer." | n <-
 [100,99..1]] in Language.Haskell.TH.runQ [d| main = putStr s >> return ()
 |] >>= (print . Language.Haskell.TH.ppr)') > beer.hs
 % runhugs beer.hs
 runhugs: Error occurred
 ERROR "beer.hs":10275 - Syntax error in input (unexpected `)')
 }}}

 Yeah, I know that's a pretty long one-liner...

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1444>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to