This library allows conversion between the types from
copying the underlying data. This is useful, for example, when
IO produces or consumes vectors of numbers in native byte order.
This trick relies on the fact that
Vector use their
ForeignPtrs in compatible ways. It works with
vector-0.9 on GHC 7.0. It may break with future
releases of these packages. Depending on this library should be seen as a
way to document and standardize an existing hack, and not as an absolute
guarantee of correct behavior.