A utility module supporting the parsers.
A helper to show all parse errors. You should identify all possible parse errors as soon as possible, ideally at the top elm Program level, and show this view if you have errors.
The tuple is a string identifying the source of the error, and the atual error string iteself.
A simple way to show errors. Borrowed from https://github.com/elm/parser/pull/16
A string parser that fails if the string is empty and succeeds otherwise.
Generic helper to parse a list against a supplied parse function. Will be Err if any items fail to parse, or an Ok of the list of parsed results. Useful for parsing a rule's conditions and changes for example.
Parse errors are a list of an identifier (which usually includes the raw source string) and a string representation of the raw parse errors.