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.
1 parent 161fdd9 commit dbef11bCopy full SHA for dbef11b
src/Data/HugeInt.purs
@@ -19,6 +19,7 @@ module Data.HugeInt
19
import Prelude
20
21
import Data.String (length, drop, takeWhile)
22
+import Data.Generic (class Generic)
23
import Data.Int (toNumber)
24
import Data.Int (round) as Int
25
import Data.Maybe (Maybe(..))
@@ -27,6 +28,8 @@ import Data.HugeNum as HN
27
28
29
newtype HugeInt = HugeInt HugeNum
30
31
+derive instance genericHugeInt :: Generic HugeInt
32
+
33
instance eqHugeInt :: Eq HugeInt where
34
eq (HugeInt h1) (HugeInt h2) = h1 == h2
35
0 commit comments