Converting IEEE 754 floating point in Haskell Word32/64 to and from Haskell Float/Double
Question In Haskell, the base libraries and Hackage packages provide several means of converting binary IEEE-754 floating point data to and from the lifted Float and Double types. However, the accuracy, performance, and portability of these methods are unclear. For a GHC-targeted library intended to (de)serialize a binary format across platforms, what is the best approach for handling IEEE-754 floating point data? Approaches These are the methods I've encountered in existing libraries and online resources. FFI Marshaling This is the approach used by the data-binary-ieee754 package. Since Float