Skip to content

Commit

Permalink
Merge pull request #248 from citizennet/arthur/add-instance-ord-cents
Browse files Browse the repository at this point in the history
FBCM-5115 Add an `Ord` instance for `Cents`
  • Loading branch information
davezuch authored Oct 11, 2022
2 parents d47a840 + a9ce0c1 commit 9be2271
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Currency.purs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import Prim.TypeError (class Warn, Text)
newtype Cents = Cents BigInt
derive instance newtypeCents :: Newtype Cents _
derive newtype instance eqCents :: Eq Cents
derive newtype instance ordCents :: Ord Cents

instance encodeJsonCents :: EncodeJson Cents where
encodeJson = encodeJson <<< centsToNumber
Expand Down

0 comments on commit 9be2271

Please sign in to comment.