Skip to content

Commit 9be2271

Browse files
authored
Merge pull request #248 from citizennet/arthur/add-instance-ord-cents
FBCM-5115 Add an `Ord` instance for `Cents`
2 parents d47a840 + a9ce0c1 commit 9be2271

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Data/Currency.purs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import Prim.TypeError (class Warn, Text)
2727
newtype Cents = Cents BigInt
2828
derive instance newtypeCents :: Newtype Cents _
2929
derive newtype instance eqCents :: Eq Cents
30+
derive newtype instance ordCents :: Ord Cents
3031

3132
instance encodeJsonCents :: EncodeJson Cents where
3233
encodeJson = encodeJson <<< centsToNumber

0 commit comments

Comments
 (0)