| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.Runtime.Serialize
Documentation
Methods
tag2word :: t -> Word8 Source #
word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m t Source #
putLength :: (Integral n, Integral (Unsigned n), Bits n, Bits (Unsigned n)) => n -> Builder Source #
getLength :: forall (m :: Type -> Type) n. (PrimBase m, Integral n, Integral (Unsigned n), Bits n, Bits (Unsigned n)) => Get m n Source #
putPositive :: (Bits n, Bits (Unsigned n), Integral n, Integral (Unsigned n)) => n -> Builder Source #
getPositive :: forall (m :: Type -> Type) n. (Bounded n, Integral n, PrimBase m) => Get m n Source #
getMap :: forall (m :: Type -> Type) a b. (PrimBase m, Ord a) => Get m a -> Get m b -> Get m (Map a b) Source #
getMapping :: forall (m :: Type -> Type) a b. PrimBase m => Get m a -> Get m b -> Get m [(a, b)] Source #
getEnumMap :: forall (m :: Type -> Type) k v. (PrimBase m, EnumKey k) => Get m k -> Get m v -> Get m (EnumMap k v) Source #
getEnumSet :: forall (m :: Type -> Type) k. (PrimBase m, EnumKey k) => Get m k -> Get m (EnumSet k) Source #
getPair :: forall (m :: Type -> Type) a b. PrimBase m => Get m a -> Get m b -> Get m (a, b) Source #
putByteArray :: ByteArray -> Builder Source #
naturalToWord64s :: Natural -> [Word64] Source #
word64sToNatural :: [Word64] -> Natural Source #
putNatural :: Natural -> Builder Source #
putInteger :: Integer -> Builder Source #
putReferent :: Referent -> Builder Source #
putReferentByNumber :: PutRefLookup -> Referent -> Builder Source #
getReferentByNumber :: forall (m :: Type -> Type). PrimBase m => GetRefLookup -> Get m Referent Source #
getConstructorType :: forall (m :: Type -> Type). PrimBase m => Get m ConstructorType Source #
putConstructorReferenceByNumber :: CanonMap Reference Int -> ConstructorReference -> Builder Source #
getConstructorReferenceByNumber :: forall (m :: Type -> Type). PrimBase m => Array Reference -> Get m ConstructorReference Source #
getNumberedConstructorReference :: forall (m :: Type -> Type). PrimBase m => Get m (GConstructorReference RefNum) Source #
putReference :: Reference -> Builder Source #
getReferenceByNumber :: forall (m :: Type -> Type). PrimBase m => Array Reference -> Get m Reference Source #
getConstructorReference :: forall (m :: Type -> Type). PrimBase m => Get m ConstructorReference Source #