#3715: GHC API no longer exports location information for error/warning messages
--------------------------------------+-------------------------------------
  Reporter:  greenrd                  |          Owner:                  
      Type:  bug                      |         Status:  new             
  Priority:  normal                   |      Milestone:                  
 Component:  GHC API                  |        Version:  6.12.1 RC1      
Resolution:                           |       Keywords:                  
Difficulty:  Easy (less than 1 hour)  |             Os:  Unknown/Multiple
  Testcase:                           |   Architecture:  Unknown/Multiple
   Failure:  Other                    |  
--------------------------------------+-------------------------------------
Comment (by greenrd):

 Replying to [comment:2 simonpj]:
 > Can you be 100% concrete?

 Yes, sorry.

 >  * What ''exactly'' is the API change that you've encountered?

 The fields `errMsgSpans`, `errMsgShortDoc`, and `errMsgContext` of the
 `ErrMsg` record in `compiler/main/ErrUtils.lhs`, used to be exported; now
 they are not. They are still there (in RC2), just not exported. The first
 one was used by scion for determining the location associated with a
 message; the other two were used to display it nicely (see [comment:1
 comment 1]).

 >  * What exactly is the change (or reversion) that would help you?

 Exporting those fields from `ErrUtils.lhs` again. I could not find any
 other way of getting hold of the same information.

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