-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
The current function documentation is:
decode : Decoder a -> Bytes -> Maybe aThe
Decoderspecifies exactly how this should happen. This process may fail if the sequence of bytes is corrupted or unexpected somehow. The examples above show a case where there are not enough bytes.
What does "corrupted sequence of bytes" mean here?
signedInt8 should work on any Bytes given to it. Is there a case where using it in decode yields Nothing?
If there is, I think a more explicit warning would help (and ideally some links about possible issues). If there isn't, the documentation should say that the only reason for decoding to fail is by passing the decoder a sequence of bytes that it is unable to parse.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels