Module

Data.Long.Internal

Package
purescript-longs
Repository
zapph/purescript-longs

#Signedness Source

#SInfo Source

class SInfo (s :: Signedness)  where

Members

Instances

#SignProxy Source

data SignProxy (s :: Signedness)

Constructors

#signedLongFromInt Source

#unsignedLongFromInt Source

#unsafeFromInt Source

unsafeFromInt :: forall s. SInfo s => Int -> Long s

#fromLowHighBits Source

fromLowHighBits :: forall s. SInfo s => Int -> Int -> Long s

#fromNumber Source

fromNumber :: forall s. SInfo s => Bounded (Long s) => Number -> Maybe (Long s)

#fromString Source

fromString :: forall s. SInfo s => String -> Maybe (Long s)

#fromStringAs Source

fromStringAs :: forall s. SInfo s => Radix -> String -> Maybe (Long s)

#highBits Source

highBits :: forall s. Long s -> Int

#lowBits Source

lowBits :: forall s. Long s -> Int

#toString Source

toString :: forall s. Long s -> String

#toStringAs Source

toStringAs :: forall s. Radix -> Long s -> String

#toNumber Source

toNumber :: forall s. Long s -> Number

Converts a Long to a Number, possibly losing precision.

#parity Source

parity :: forall s. Long s -> Parity

Returns whether a Long is Even or Odd.

#even Source

even :: forall s. Long s -> Boolean

#odd Source

odd :: forall s. Long s -> Boolean

#positive Source

positive :: forall s. Long s -> Boolean

#negative Source

negative :: forall s. Long s -> Boolean

#quot Source

quot :: forall s. Semiring (Long s) => Long s -> Long s -> Long s

#rem Source

rem :: forall s. Semiring (Long s) => Long s -> Long s -> Long s

#and Source

and :: forall s. Long s -> Long s -> Long s

#or Source

or :: forall s. Long s -> Long s -> Long s

#xor Source

xor :: forall s. Long s -> Long s -> Long s

#shl Source

shl :: forall s. Long s -> Long s -> Long s

#shr Source

shr :: forall s. Long s -> Long s -> Long s

#zshr Source

zshr :: forall s. Long s -> Long s -> Long s

#complement Source

complement :: forall s. Long s -> Long s

#numberBitsToInt Source