cereal-0.3.5.2: A binary serialization library

Safe HaskellSafe-Infered

Data.Serialize.IEEE754

Contents

Description

IEEE-754 parsing, as described in this stack-overflow article:

http:stackoverflow.comquestions6976684converting-ieee-754-floating-point-in-haskell-word32-64-to-and-from-haskell-float7002812#7002812

Synopsis

IEEE-754 reads

getFloat32le :: Get FloatSource

Read a Float in little endian IEEE-754 format

getFloat32be :: Get FloatSource

Read a Float in big endian IEEE-754 format

getFloat64le :: Get DoubleSource

Read a Double in little endian IEEE-754 format

getFloat64be :: Get DoubleSource

Read a Double in big endian IEEE-754 format

IEEE-754 writes

putFloat32le :: Float -> PutSource

Write a Float in little endian IEEE-754 format

putFloat32be :: Float -> PutSource

Write a Float in big endian IEEE-754 format

putFloat64le :: Double -> PutSource

Write a Double in little endian IEEE-754 format

putFloat64be :: Double -> PutSource

Write a Double in big endian IEEE-754 format