Converts between Float/Double and Word32/Word64 in Haskell