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

Portabilitytype-families
Stabilityexperimental
Safe HaskellSafe-Inferred

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

type family Signed i :: *Source

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