Skip to content

Commit

Permalink
Merge pull request #46 from mlang/showParseError
Browse files Browse the repository at this point in the history
Fix Show instance for ParseError
  • Loading branch information
paf31 authored Jan 16, 2017
2 parents 5ffbcf1 + 34b17f4 commit 2511d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Text/Parsing/Parser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ parseErrorPosition (ParseError _ pos) = pos

instance showParseError :: Show ParseError where
show (ParseError msg pos) =
"(ParseError " <> show msg <> show pos <> ")"
"(ParseError " <> show msg <> " " <> show pos <> ")"

derive instance eqParseError :: Eq ParseError
derive instance ordParseError :: Ord ParseError
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Parsing/Parser/Pos.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ newtype Position = Position

instance showPosition :: Show Position where
show (Position { line: line, column: column }) =
"Position { line: " <> show line <> ", column: " <> show column <> " }"
"(Position { line: " <> show line <> ", column: " <> show column <> " })"

derive instance eqPosition :: Eq Position
derive instance ordPosition :: Ord Position
Expand Down

0 comments on commit 2511d02

Please sign in to comment.