We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Ord
Cents
1 parent d47a840 commit a9ce0c1Copy full SHA for a9ce0c1
src/Data/Currency.purs
@@ -27,6 +27,7 @@ import Prim.TypeError (class Warn, Text)
27
newtype Cents = Cents BigInt
28
derive instance newtypeCents :: Newtype Cents _
29
derive newtype instance eqCents :: Eq Cents
30
+derive newtype instance ordCents :: Ord Cents
31
32
instance encodeJsonCents :: EncodeJson Cents where
33
encodeJson = encodeJson <<< centsToNumber
0 commit comments