decode package:binary

Decode a value from a lazy ByteString, reconstructing the original structure.
Decode a value from a file. In case of errors, error will be called with the error message. Since: 0.7.0.0
Decode a value from a file. In case of success, the value will be returned in Right. In case of decoder errors, the error message together with the byte offset will be returned.
Decode a value from a lazy ByteString. Returning Left on failure and Right on success. In both cases the unconsumed input and the number of consumed bytes is returned. In case of failure, a human-readable error message will be returned as well. Since: 0.7.0.0
A decoder procuced by running a Get monad.
A decoder produced by running a Get monad.