#4150: CPP+QuasiQuotes confuses compilation errors' line numbers
------------------------+---------------------------------------------------
    Reporter:  yairchu  |       Owner:                                   
        Type:  bug      |      Status:  new                              
    Priority:  normal   |   Component:  Compiler                         
     Version:  6.12.1   |    Keywords:                                   
          Os:  MacOS X  |    Testcase:                                   
Architecture:  x86      |     Failure:  Incorrect warning at compile-time
------------------------+---------------------------------------------------
 doing an #include of multi-line files inside QuasiQuotes makes GHC report
 wrong line numbers on errors occurring in normal code which is after the
 said #include.

 {{{
 myHtmlsTemplate = [$multiLineStr|
 #include "template.html"
 |]

 somethingElse :: NoSuchType
 somethingElse = 7
 }}}

 The example code will fail compiling with: {{{Not in scope: type
 constructor or class `NoSuchType'}}}, but will not report the correct line
 number of the error.

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