#1240: Template Haskell only accepts semicolons not newlines in declaration
quotations
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:                
     Type:  bug                  |         Status:  new           
 Priority:  low                  |      Milestone:                
Component:  Template Haskell     |        Version:  6.6           
 Severity:  minor                |     Resolution:                
 Keywords:                       |     Difficulty:  Unknown       
 Testcase:                       |   Architecture:  x86_64 (amd64)
       Os:  Linux                |  
---------------------------------+------------------------------------------
Comment (by igloo):

 You can certainly say something like this:
 {{{
 import Language.Haskell.TH

 $( do ds <- [d|
                 foo = 'a'
                 bar = 'b'
               |]
       runIO $ putStrLn $ pprint ds
       return ds
  )
 }}}
 Have you got an example that doesn't work how you'd expect?

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