Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Module, carrying logic of UNPACK
instruction.
This is nearly symmetric to adjacent Pack.hs module.
When implementing this the following sources were used:
Synopsis
- newtype UnpackError = UnpackError {}
- unpackInstr' :: ByteString -> Either UnpackError [ExpandedOp]
- unpackUValue' :: ByteString -> Either UnpackError Value
- unpackValue' :: forall t. UnpackedValScope t => ByteString -> Either UnpackError (Value t)
Documentation
newtype UnpackError Source #
Any decoding error.
Instances
Exception UnpackError Source # | |
Defined in Morley.Util.Binary | |
Show UnpackError Source # | |
Defined in Morley.Util.Binary showsPrec :: Int -> UnpackError -> ShowS # show :: UnpackError -> String # showList :: [UnpackError] -> ShowS # | |
Buildable UnpackError Source # | |
Defined in Morley.Util.Binary build :: UnpackError -> Builder # | |
Eq UnpackError Source # | |
Defined in Morley.Util.Binary (==) :: UnpackError -> UnpackError -> Bool # (/=) :: UnpackError -> UnpackError -> Bool # |
unpackInstr' :: ByteString -> Either UnpackError [ExpandedOp] Source #
Deserialize an instruction into the given value.
unpackUValue' :: ByteString -> Either UnpackError Value Source #
Deserialize bytes into Value
.
unpackValue' :: forall t. UnpackedValScope t => ByteString -> Either UnpackError (Value t) Source #
Deserialize bytes into the given value.
Suitable for UNPACK
operation only.