Skip to content

Commit 18370d1

Browse files
committed
Add Eq and Ord for ParseResult
Fixes #401
1 parent d97e3bb commit 18370d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Haskell/Exts/ParseMonad.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ data ParseResult a
7575
| ParseFailed SrcLoc String
7676
-- ^ The parse failed at the specified
7777
-- source location, with an error message.
78-
deriving Show
78+
deriving (Show, Ord, Eq)
7979

8080
-- | Retrieve the result of a successful parse, throwing an
8181
-- error if the parse is actually not successful.

0 commit comments

Comments
 (0)