@@ -827,7 +827,11 @@ prettyPrintMultipleErrorsWith level _ intro full (MultipleErrors es) = do
827prettyPrintParseError :: P.ParseError -> Box.Box
827prettyPrintParseError :: P.ParseError -> Box.Box
828prettyPrintParseError = (prettyPrintParseErrorMessages "or" "unknown parse error" "expecting" "unexpected" "end of input") . PE.errorMessages
828prettyPrintParseError = (prettyPrintParseErrorMessages "or" "unknown parse error" "expecting" "unexpected" "end of input") . PE.errorMessages
830−-- | Pretty print ParseError detail messages. Adapted from Text.Parsec.Error.showErrorMessages.
831+-- Pretty print ParseError detail messages.
833+-- Adapted from 'Text.Parsec.Error.showErrorMessages', see <https://github.com/aslatter/parsec/blob/v3.1.9/Text/Parsec/Error.hs#L173>.
831prettyPrintParseErrorMessages :: String -> String -> String -> String -> String -> [Message] -> Box.Box
835prettyPrintParseErrorMessages :: String -> String -> String -> String -> String -> [Message] -> Box.Box
832prettyPrintParseErrorMessages msgOr msgUnknown msgExpecting msgUnExpected msgEndOfInput msgs
836prettyPrintParseErrorMessages msgOr msgUnknown msgExpecting msgUnExpected msgEndOfInput msgs
833 | null msgs = Box.text msgUnknown
837 | null msgs = Box.text msgUnknown