Skip to content

Commit bcdae19

Browse files
ChrisPennerfrasertweedale
authored andcommitted
Add Ord instance for StringOrURI
1 parent a7029b0 commit bcdae19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Crypto/JWT.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ instance AsError JWTError where
221221
-- contains a @:@ but does not parse as a 'URI'. Use 'stringOrUri'
222222
-- directly in this situation.
223223
--
224-
data StringOrURI = Arbitrary T.Text | OrURI URI deriving (Eq, Show)
224+
data StringOrURI = Arbitrary T.Text | OrURI URI deriving (Eq, Show, Ord)
225225

226226
-- | Non-total. A string with a @':'@ in it MUST parse as a URI
227227
instance Data.String.IsString StringOrURI where

0 commit comments

Comments
 (0)