#1803: Include qCurrentLoc in the  Quasi class
------------------------------+---------------------------------------------
 Reporter:  guest             |          Owner:             
     Type:  feature request   |         Status:  new        
 Priority:  normal            |      Milestone:  6.10 branch
Component:  Template Haskell  |        Version:  6.6.1      
 Severity:  normal            |     Resolution:             
 Keywords:                    |     Difficulty:  Unknown    
 Testcase:                    |   Architecture:  Unknown    
       Os:  Unknown           |  
------------------------------+---------------------------------------------
Comment (by guest):

 I would like to point out that this, apparently not-so-useful feature, can
 be crucial when using TH to create embedded languages.

 Sometimes, a semantic error cannot be detected in the very same splice in
 which code is generated.

 By storing the exact location in which the splice was called, the embedded
 compiler could later point the user to the exact origin of the error,
 providing rich error reports.

 Unfortunately, the lack of qCurrentLoc, makes it impossible.

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