borsh-0.1.0: Implementation of BORSH serialisation
Safe HaskellNone
LanguageHaskell2010

Data.Int128

Synopsis

Definition

data Int128 Source #

Signed 128-bit word

Implementation note: this currently relies on the implementation of the wide-word package, with some additional instances. However, the use of wide-word is not part of the public API of the borsh package.

Instances

Instances details
Data Int128 Source # 
Instance details

Defined in Data.Int128

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int128 -> c Int128 #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int128 #

toConstr :: Int128 -> Constr #

dataTypeOf :: Int128 -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int128) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int128) #

gmapT :: (forall b. Data b => b -> b) -> Int128 -> Int128 #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int128 -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int128 -> r #

gmapQ :: (forall d. Data d => d -> u) -> Int128 -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Int128 -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int128 -> m Int128 #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int128 -> m Int128 #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int128 -> m Int128 #

Storable Int128 Source # 
Instance details

Defined in Data.Int128

Bits Int128 Source # 
Instance details

Defined in Data.Int128

FiniteBits Int128 Source # 
Instance details

Defined in Data.Int128

Bounded Int128 Source # 
Instance details

Defined in Data.Int128

Enum Int128 Source # 
Instance details

Defined in Data.Int128

Generic Int128 Source # 
Instance details

Defined in Data.Int128

Associated Types

type Rep Int128 :: Type -> Type #

Methods

from :: Int128 -> Rep Int128 x #

to :: Rep Int128 x -> Int128 #

Ix Int128 Source # 
Instance details

Defined in Data.Int128

Num Int128 Source # 
Instance details

Defined in Data.Int128

Read Int128 Source # 
Instance details

Defined in Data.Int128

Integral Int128 Source # 
Instance details

Defined in Data.Int128

Real Int128 Source # 
Instance details

Defined in Data.Int128

Show Int128 Source # 
Instance details

Defined in Data.Int128

BorshSize Int128 Source # 
Instance details

Defined in Codec.Borsh.Class

Associated Types

type StaticBorshSize Int128 :: KnownSize Source #

FromBorsh Int128 Source # 
Instance details

Defined in Codec.Borsh.Class

ToBorsh Int128 Source # 
Instance details

Defined in Codec.Borsh.Class

Eq Int128 Source # 
Instance details

Defined in Data.Int128

Methods

(==) :: Int128 -> Int128 -> Bool #

(/=) :: Int128 -> Int128 -> Bool #

Ord Int128 Source # 
Instance details

Defined in Data.Int128

type Rep Int128 Source # 
Instance details

Defined in Data.Int128

type StaticBorshSize Int128 Source # 
Instance details

Defined in Codec.Borsh.Class

Construction

int128 Source #

Arguments

:: Word64

Most significant bits

-> Word64

Least significant bits

-> Int128 

Construct an Int128

Destruction

int128MS64 :: Int128 -> Word64 Source #

Get the most significant 64 bits from an Int128

int128LS64 :: Int128 -> Word64 Source #

Get the least significant 64 bits from an Int128