The function, formerly known as "fromRealFrac", was renamed to "realToFrac" in the Haskell 98 report.
In Haskell 1.4 Prelude we find
fromRealFrac :: (RealFrac a, Fractional b) => a -> b fromRealFrac = fromRational . toRational
However, Haskell 98 is known as
realToFrac :: (Real a, Fractional b) => a -> b realToFrac = fromRational . toRational
This change is noted in Haskell 98. Report an error :
[Apr 2001] Page 84, Section 6.4, Fig 7; and bottom of page 86, Section 6.4.6. fromRealFrac :: (RealFrac a, Fractional b) => a -> b should be replaced by realToFrac :: (Real a, Fractional b) => a -> b
The closest commit I could find was this in the report repo.
Don stewart
source share