RealFrac -package:reform

Extracting components of fractions.
Methods for the RealFrac instances for Float and Double, with specialised versions for Int. Moved to their own module to not bloat GHC.Float further.
Deep embedded version of RealFloat. Extracting components of fractions. Minimal complete definition: properFraction, round, floor and ceiling.
Generates a random fractional number in the [inclusive,exclusive) range. This generator does not shrink.
Convert a real fractional value into a Decimal of the appropriate precision.
Provides a Function instance for types with RealFrac.
Shrink a fraction, preferring numbers with smaller numerators or denominators. See also shrinkDecimal.