Error handling could be _further_ improved #108
Labels
discussion needed
for when an implementation is uncertain
IMPORTANT
These are serious things to focus on
major
WithError
is solid, but sometimes branches are missed and lead to very ugly errors. Furthermore, due to the intricacies ofMaybe
, we can get some very weird errors - which of the parts of the parser should error inMaybe a -> Maybe b -> c -> ...
if neither of theMaybe
s are present?This needs some discussion, but thoughts that came up were:
Text
should default error witherror: expecting Text
that should be overridden.I think the system of using parser names is probably unreliable (we name parsers with their error messages using
<?>
and slightly change the reporting system to make it clearer to users) - maybe there's other stuff inmegaparsec
that can help with error parsing? This needs some serious investigation, regardless.The text was updated successfully, but these errors were encountered: