Are Haskell floating and double fraction instances?

If I type ": I'm Double" or ": I'm Float" in ghci, it says Double and Float are instances of Fractional. But the Haskell docs say that is not the case. So are they or not? http://hackage.haskell.org/package/base-4.9.1.0/docs/Prelude.html#t:Fractional

+6
source share
1 answer

Double and Float are part of RealFloat , which continues with RealFrac and Floating ; both of which are expanded by Fractional .

+9
source

Source: https://habr.com/ru/post/1014861/


All Articles