5 importJava "java.math.BigInteger" where
6 "Arbitrary-precision integer"
10 equalsBigInteger :: BigInteger -> BigInteger -> Boolean
12 minBigInteger :: BigInteger -> BigInteger -> BigInteger
14 maxBigInteger :: BigInteger -> BigInteger -> BigInteger
16 showBigInteger :: BigInteger -> String
18 compareBigInteger :: BigInteger -> BigInteger -> Integer
20 hashBigInteger :: BigInteger -> Integer
22 zeroBigInteger :: BigInteger
24 oneBigInteger :: BigInteger
26 longToBigInteger :: Long -> BigInteger
29 addBigInteger :: BigInteger -> BigInteger -> BigInteger
31 negBigInteger :: BigInteger -> BigInteger
33 subBigInteger :: BigInteger -> BigInteger -> BigInteger
35 mulBigInteger :: BigInteger -> BigInteger -> BigInteger
37 divBigInteger :: BigInteger -> BigInteger -> BigInteger
39 remBigInteger :: BigInteger -> BigInteger -> BigInteger
41 absBigInteger :: BigInteger -> BigInteger
43 toIntegerBigInteger :: BigInteger -> Integer
45 instance Show BigInteger where
48 instance Ord BigInteger where
49 compare = compareBigInteger
53 instance Additive BigInteger where
57 instance Ring BigInteger where
62 fromInteger x = longToBigInteger (fromInteger x)
64 instance OrderedRing BigInteger where
66 toInteger = toIntegerBigInteger
68 instance Integral BigInteger where