Currently, we don't guarantee the order in error bundles (see runParserT'),
That's poor UX because the author of a parser would like to see errors from left to right, in order of appearance.
How?
[ ] Implement sorting on NonEmptyLists
[ ] Use it in runParserT' and wherever else we build bundles
[x] Perhaps, make a function that makes bundles in Bundle.lean (!)
Why?
Currently, we don't guarantee the order in error bundles (see
runParserT'
), That's poor UX because the author of a parser would like to see errors from left to right, in order of appearance.How?
runParserT'
and wherever else we build bundlesBundle.lean
(!)