[GHC] #597: Various error messages have inaccurate source locations

GHC trac at galois.com
Fri Jan 8 03:56:42 EST 2010


#597: Various error messages have inaccurate source locations
-----------------------------------------+----------------------------------
  Reporter:  simonmar                    |          Owner:                  
      Type:  task                        |         Status:  new             
  Priority:  low                         |      Milestone:  _|_             
 Component:  Compiler                    |        Version:  None            
Resolution:  None                        |       Keywords:                  
Difficulty:  Moderate (less than a day)  |             Os:  Unknown/Multiple
  Testcase:                              |   Architecture:  Unknown/Multiple
   Failure:  Other                       |  
-----------------------------------------+----------------------------------
Comment (by simonpj):

 I believe that all are fixed now except 5, which I don't know how to do:
  * Location in LHsModule from the parser should really span the whole
 file, rather than a point span at (1,0)

 Two patches:
 {{{
 Thu Jan  7 07:11:13 PST 2010  simonpj at microsoft.com
   * A little refactoring, plus improve error locations

   Fixes some sub-items of Trac #597

     M ./compiler/typecheck/TcDeriv.lhs -2 +1
     M ./compiler/typecheck/TcInstDcls.lhs -2 +1
     M ./compiler/typecheck/TcMType.lhs -6 +17
 }}}
 and
 {{{
 Thu Jan  7 07:32:34 PST 2010  simonpj at microsoft.com
   * Improve error locations

   More on Trac #597

     M ./compiler/rename/RnBinds.lhs -21 +20
     M ./compiler/rename/RnTypes.lhs -9 +9
 }}}
 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/597#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list