RealFloat package:ghc-lib-parser

Efficient, machine-independent access to the components of a floating-point number.