haskell Convert Float and Decimal values to/from raw octets.