git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Link to Text.Parsec.Error.showErrorMessages from comment
commit96f5b98b03f0d8297d57b550e11598795ac5ddbd authorErik Post <erik@shinsetsu.nl> dateMon 24 Aug 2015, 19:47 (11 years ago) parentb8ed030
1 file changed+5−1
src/Language/PureScript/Errors.hs+5−1
src/Language/PureScript/Errors.hs+5−1
@@ -827,7 +827,11 @@ prettyPrintMultipleErrorsWith level _ intro full (MultipleErrors es) = do
827827prettyPrintParseError :: P.ParseError -> Box.Box
828828prettyPrintParseError = (prettyPrintParseErrorMessages "or" "unknown parse error" "expecting" "unexpected" "end of input") . PE.errorMessages
829829
830−-- | Pretty print ParseError detail messages. Adapted from Text.Parsec.Error.showErrorMessages.
830+-- |
831+-- Pretty print ParseError detail messages.
832+--
833+-- Adapted from 'Text.Parsec.Error.showErrorMessages', see <https://github.com/aslatter/parsec/blob/v3.1.9/Text/Parsec/Error.hs#L173>.
834+--
831835prettyPrintParseErrorMessages :: String -> String -> String -> String -> String -> [Message] -> Box.Box
832836prettyPrintParseErrorMessages msgOr msgUnknown msgExpecting msgUnExpected msgEndOfInput msgs
833837 | null msgs = Box.text msgUnknown