-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support selecting endianness for numeric types #31
Comments
Good ideas!
This would enable TH / generics to write your serialization definitions. I'm not sure how to make these work on larger datatypes (
It makes a lot of sense to expose |
The only reason I included Right, these only make sense for specific types that have built-in support for endianness. We could enforce that in the types if you want. |
Based on the design in #36, |
Make it possible to specify the endianness of the serialization for numeric types.
This could be implemented as newtype wrappers
LitteEndian
,BigEndian
, andHostEndian
. Or it could be a bunch of separate combinators, as in binary and cereal.The text was updated successfully, but these errors were encountered: