Skip to content

Commit 1a0eb8f

Browse files
committed
Add Eq and Ord for ParseResult
Fixes #401
1 parent b187749 commit 1a0eb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Haskell/Exts/ParseMonad.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ data ParseResult a
7676
| ParseFailed SrcLoc String
7777
-- ^ The parse failed at the specified
7878
-- source location, with an error message.
79-
deriving Show
79+
deriving (Show, Ord, Eq)
8080

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

0 commit comments

Comments
 (0)