Skip to content

Commit

Permalink
Add show instance
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma-andex committed Oct 16, 2022
1 parent 66da79a commit a23c0ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Js/BigInt/BigInt.purs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ instance Ord BigInt where
-- | A decimal representation of the `BigInt` as a `String`.
foreign import toString :: BigInt -> String

instance Show BigInt where
show = toString

-- | Clamps a BigInt value to the given number of bits, and returns that value as a signed integer.
foreign import asIntN :: Int -> BigInt -> BigInt

Expand Down

0 comments on commit a23c0ec

Please sign in to comment.