bytes-0.15.5: Sharing code for serialization between binary and cereal

LicenseBSD3
Stabilityexperimental
Portabilitytype-families
Safe HaskellSafe
LanguageHaskell98

Data.Bytes.Signed

Description

When one wants to think of an Int as a dumb bitstring, converting it to a Word avoids pesky complications with respect to sign extension.

Documentation

type family Unsigned i :: * Source #

Instances
type Unsigned Int Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Int8 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Int16 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Int32 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Int64 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Integer Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Word Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Word8 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Word16 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Word32 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned Word64 Source # 
Instance details

Defined in Data.Bytes.Signed

type Unsigned (VarInt n) Source # 
Instance details

Defined in Data.Bytes.VarInt

unsigned :: (Integral i, Num (Unsigned i)) => i -> Unsigned i Source #

type family Signed i :: * Source #

Instances
type Signed Int Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Int = Int
type Signed Int8 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Int16 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Int32 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Int64 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Integer Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Word Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Word = Int
type Signed Word8 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Word16 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Word32 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed Word64 Source # 
Instance details

Defined in Data.Bytes.Signed

type Signed (VarInt n) Source # 
Instance details

Defined in Data.Bytes.VarInt

type Signed (VarInt n) = VarInt (Signed n)

signed :: (Integral i, Num (Signed i)) => i -> Signed i Source #