You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Unbox type class is meant to serialize the Haskell data structures in the host memory. There is absolutely no need to change the endianness in this case when copying structures to/from host memory.
When we designed the Serialize type class we modeled it on Unbox and kept is compatible with Unbox. Though there is no need to do that. The Serialize type class also uses the host byte order when serializing. But we can support portable byte-ordering as well if there is a need for that. One way is to fix the byte-ordering of the Serialize type class to LE or have SerializeLE or SerializeBE type classes for that purpose. Another way is to use BE/LE as an option in Serialize deriving.
The text was updated successfully, but these errors were encountered:
The Unbox type class is meant to serialize the Haskell data structures in the host memory. There is absolutely no need to change the endianness in this case when copying structures to/from host memory.
When we designed the Serialize type class we modeled it on Unbox and kept is compatible with Unbox. Though there is no need to do that. The Serialize type class also uses the host byte order when serializing. But we can support portable byte-ordering as well if there is a need for that. One way is to fix the byte-ordering of the Serialize type class to LE or have SerializeLE or SerializeBE type classes for that purpose. Another way is to use BE/LE as an option in Serialize deriving.
The text was updated successfully, but these errors were encountered: