Closed jamesdbrock closed 1 year ago
New String function: parseErrorHuman
parseErrorHuman
Returns three Strings which, when printed line-by-line, will show a nice human-readable parsing error message.
String
let input = "12345six789" case runParser input (replicateA 9 String.Basic.digit) of Left err -> log $ String.joinWith "\n" $ parseErrorHuman input 20 err
Expected digit at position index:5 (line:1, column:6) ▼ 12345six789
Checklist:
New String function:
parseErrorHuman
Checklist: