Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Data/HugeInt.purs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module Data.HugeInt
import Prelude

import Data.String (length, drop, takeWhile)
import Data.Generic (class Generic)
import Data.Int (toNumber)
import Data.Int (round) as Int
import Data.Maybe (Maybe(..))
Expand All @@ -27,6 +28,8 @@ import Data.HugeNum as HN

newtype HugeInt = HugeInt HugeNum

derive instance genericHugeInt :: Generic HugeInt

instance eqHugeInt :: Eq HugeInt where
eq (HugeInt h1) (HugeInt h2) = h1 == h2

Expand Down