Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module, carrying logic of PACK
instruction.
This is nearly symmetric to adjacent Unpack.hs module.
Synopsis
- packCode' :: Instr inp out -> ByteString
- packT' :: forall (t :: T). SingI t => ByteString
- packValue :: PackedValScope t => Value t -> LByteString
- packValue' :: PackedValScope t => Value t -> ByteString
- encodeValue' :: (SingI t, HasNoOp t) => Value t -> ByteString
- packNotedT' :: forall (t :: T). SingI t => Notes t -> ByteString
- encodeIntPayload :: Integer -> LByteString
Documentation
packCode' :: Instr inp out -> ByteString Source #
packValue :: PackedValScope t => Value t -> LByteString Source #
Serialize a value given to PACK
instruction.
packValue' :: PackedValScope t => Value t -> ByteString Source #
Same as packValue
, for strict bytestring.
Serializers used in morley-client
encodeValue' :: (SingI t, HasNoOp t) => Value t -> ByteString Source #
packNotedT' :: forall (t :: T). SingI t => Notes t -> ByteString Source #
Internals
encodeIntPayload :: Integer -> LByteString Source #
Encode contents of a given number.