Skip to content

Commit eccf167

Browse files
committed
Derive Semigroup and Monoid instances for JWKSet.
1 parent a7029b0 commit eccf167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Crypto/JOSE/JWK.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ instance AsPublicKey JWK where
322322

323323
-- | RFC 7517 §5. JWK Set Format
324324
--
325-
newtype JWKSet = JWKSet [JWK] deriving (Eq, Show)
325+
newtype JWKSet = JWKSet [JWK] deriving (Eq, Show, Semigroup, Monoid)
326326

327327
instance FromJSON JWKSet where
328328
parseJSON = withObject "JWKSet" (\o -> JWKSet <$> o .: "keys")

0 commit comments

Comments
 (0)