react-fontawesome icon indicating copy to clipboard operation
react-fontawesome copied to clipboard

Include error reporting for deserializer

Open andrevidela opened this issue 5 years ago • 0 comments

The type of deserialiser does not include any error reporting and currently looks like this:

   MkDeserialiser : (Bytes -> Maybe (a, Bytes)) -> Deserialiser a 

We should probably change its type to

   MkDeserialiser : (Bytes -> Either DeserializeError (a, Bytes)) -> Deserialiser a 

with DeserializeError which describe all different ways of failing the deserialization.

andrevidela avatar Apr 25 '19 15:04 andrevidela