Position calculations in HsParser

Anders Lau Olsen alauo at mip.sdu.dk
Sun Dec 16 11:43:04 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 ^.

Anders Lau Olsen





More information about the Glasgow-haskell-bugs mailing list