typesafe-endian

Enforce endianness with types

https://github.com/Ericson2314/typesafe-endian

Latest on Hackage:0.1.0.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed and maintained by John Ericson

This package provides newtype wrappers for separating data with specified endianness from other data of the same type with normal, system-specific endianness. Since these wrappers are newtypes, no runtime overhead is incurred. Currently the underlying EndianSensitive typeclass its instances are taken directly from the 'data-endian' package. However, if Haskell or GHC ever gets a built-in equivalent, like as is proposed in 'http://ghc.haskell.org/trac/ghc/ticket/7902', it should be trivial to update this to use that instead.