Position calculations in HsParser

Simon Marlow simonmar at microsoft.com
Fri Dec 21 06:27:06 EST 2001


> HsParser miscalculates column-positions if qualified names are used.
> The problem seems to be the lexer forgetting to count the '.' in the
> qualified name when deciding how much to move forward. In this
> function, for instance,
> 
>     f M.A M.B M.C = 0
>                ^
> 
> HsParser reports that the '=' is located at the column marked 
> by the ^.

Fixed; thanks.

Simon




More information about the Glasgow-haskell-bugs mailing list