Reputation: 1070
If I enter ":i Double" or ":i Float" in ghci, it says that Double and Float are instances of Fractional. But in the Haskell docs it says that they aren't. So are they or not? http://hackage.haskell.org/package/base-4.9.1.0/docs/Prelude.html#t:Fractional
Upvotes: 7
Views: 755
Reputation: 45781
Double
and Float
are a part of RealFloat
,
RealFrac
and Floating
;
Fractional
. Upvotes: 11