unison-runtime-0.0.0
Safe HaskellNone
LanguageHaskell2010

Unison.Runtime.Serialize

Documentation

unknownTag :: forall (m :: Type -> Type) a. PrimBase m => String -> Word8 -> Get m a Source #

class Tag t where Source #

Methods

tag2word :: t -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m t Source #

Instances

Instances details
Tag BLTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: BLTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m BLTag Source #

Tag CoTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: CoTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m CoTag Source #

Tag FnTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: FnTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m FnTag Source #

Tag LtTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: LtTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m LtTag Source #

Tag MtTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: MtTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m MtTag Source #

Tag TmTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: TmTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m TmTag Source #

Tag VaTag Source # 
Instance details

Defined in Unison.Runtime.ANF.Serialize.Tags

Methods

tag2word :: VaTag -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m VaTag Source #

Tag Prim1 Source # 
Instance details

Defined in Unison.Runtime.Serialize

Methods

tag2word :: Prim1 -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m Prim1 Source #

Tag Prim2 Source # 
Instance details

Defined in Unison.Runtime.Serialize

Methods

tag2word :: Prim2 -> Word8 Source #

word2tag :: forall (m :: Type -> Type). PrimBase m => Word8 -> Get m Prim2 Source #

putTag :: Tag t => t -> Builder Source #

getTag :: forall (m :: Type -> Type) t. (PrimBase m, Tag t) => Get m t Source #

getChar :: forall (m :: Type -> Type). PrimBase m => Get m Char Source #

getFloat :: forall (m :: Type -> Type). PrimBase m => Get m Double Source #

getBool :: forall (m :: Type -> Type). PrimBase m => Get m Bool Source #

getNat :: forall (m :: Type -> Type). PrimBase m => Get m Word64 Source #

getInt :: forall (m :: Type -> Type). PrimBase m => Get m Int64 Source #

getLength :: forall (m :: Type -> Type) n. (PrimBase m, Integral n, Integral (Unsigned n), Bits n, Bits (Unsigned n)) => Get m n Source #

getPositive :: forall (m :: Type -> Type) n. (Bounded n, Integral n, PrimBase m) => Get m n Source #

putFoldable :: Foldable f => (a -> Builder) -> f a -> Builder Source #

putMap :: (a -> Builder) -> (b -> Builder) -> Map a b -> Builder Source #

getMap :: forall (m :: Type -> Type) a b. (PrimBase m, Ord a) => Get m a -> Get m b -> Get m (Map a b) Source #

putMapping :: (a -> Builder) -> (b -> Builder) -> [(a, b)] -> Builder Source #

getMapping :: forall (m :: Type -> Type) a b. PrimBase m => Get m a -> Get m b -> Get m [(a, b)] Source #

putEnumMap :: EnumKey k => (k -> Builder) -> (v -> Builder) -> EnumMap k v -> Builder 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 #

putMaybe :: Maybe a -> (a -> Builder) -> Builder Source #

getMaybe :: forall (m :: Type -> Type) a. PrimBase m => Get m a -> Get m (Maybe a) Source #

putPair :: (a -> Builder) -> (b -> Builder) -> (a, b) -> Builder Source #

getPair :: forall (m :: Type -> Type) a b. PrimBase m => Get m a -> Get m b -> Get m (a, b) Source #

getBytes :: forall (m :: Type -> Type). PrimBase m => Get m Bytes Source #

getByteArray :: forall (m :: Type -> Type). PrimBase m => Get m ByteArray Source #

getNatural :: forall (m :: Type -> Type). PrimBase m => Get m Natural Source #

getInteger :: forall (m :: Type -> Type). PrimBase m => Get m Integer Source #

putArray :: (a -> Builder) -> Array a -> Builder Source #

getBlock :: forall (m :: Type -> Type). PrimBase m => Get m Chunk Source #

getHash :: forall (m :: Type -> Type). PrimBase m => Get m Hash Source #

getReferent :: forall (m :: Type -> Type). PrimBase m => Get m Referent Source #

getString :: forall (m :: Type -> Type). PrimBase m => Get m String Source #

getText :: forall (m :: Type -> Type). PrimBase m => Get m Text Source #

getReference :: forall (m :: Type -> Type). PrimBase m => Get m Reference Source #

getRefNum :: forall (m :: Type -> Type). PrimBase m => Get m RefNum Source #