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
:i
is reliable, they are listed as instances ofFloating
(which hasFractional
as superclass), and if you go to the source code forDouble
'sFloating
instance you will find theFractional
one a few lines above. This does look like a documentation/Haddock bug of some sort, though -- the instances should have been listed there. – duplode