`Ord` instance of `Pos`
pedrominicz opened this issue · 1 comments
pedrominicz commented
The instance Ord Pos
is compares positions as if they were integers, but positions get smaller further into the string! This quirk causes FlatParse.Examples.BasicLambda.Lexer.merge
to prioritize "outer" errors instead of "inner" ones. The same happens here.
I am not sure if it is better to change the Ord
instance or just change the example.
AndrasKovacs commented