File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import Text.Parsing.Parser.Pos (Position, initialPos)
15
15
-- | A parsing error, consisting of a message and position information.
16
16
data ParseError = ParseError String Position
17
17
18
+ derive instance eqParseError :: Eq ParseError
19
+
18
20
-- | The result of a single parse
19
21
data Result s a = Result s -- the new input
20
22
(Either ParseError a ) -- the result
@@ -24,9 +26,6 @@ data Result s a = Result s -- the new input
24
26
instance showParseError :: Show ParseError where
25
27
show (ParseError msg pos) = " ParseError " <> show msg <> " " <> show pos
26
28
27
- instance eqParseError :: Eq ParseError where
28
- eq (ParseError m1 p1) (ParseError m2 p2) = m1 == m2 && p1 == p2
29
-
30
29
-- | `PState` contains the remaining input and current position.
31
30
data PState s = PState s Position
32
31
You can’t perform that action at this time.
0 commit comments