We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd65474 commit a30a12fCopy full SHA for a30a12f
src/Text/Parsing/Parser.purs
@@ -25,6 +25,9 @@ data ParseError = ParseError
25
instance showParseError :: Show ParseError where
26
show (ParseError msg) = "ParseError { message: " ++ msg.message ++ ", position: " ++ show msg.position ++ " }"
27
28
+instance eqParseError :: Eq ParseError where
29
+ eq (ParseError {message : m1, position : p1}) (ParseError {message : m2, position : p2}) = m1 == m2 && p1 == p2
30
+
31
-- | `PState` contains the remaining input and current position.
32
data PState s = PState
33
{ input :: s
0 commit comments