You do not need to import GHC.Floatmanually, you can just write Float, for example
next :: Float -> Float -> Float
next n x = (x + n / x) / 2
GHC Prelude , . Prelude , , "" . , Int, Float, Maybe, IO , head, +, / ..
, IEEE isIEEE GHC.Float:
import GHC.Float
main = do
putStr "1.0 is an IEEE floating point: "
print $ isIEEE (1.0 :: Float)
, True
, , , , import , . , import qualified, :
import GHC.Float -- Everything now in scope
import qualified Data.Maybe -- Have to use full name
import qualified Data.List as L -- aliased to L
main = do
-- Don't have to type GHC.Float.isIEEE
print $ isIEEE (1.0 :: Float)
-- Have to use full name
print $ Data.Maybe.isJust $ Nothing
-- Uses aliased name
print $ L.sort [1, 4, 2, 5, 3]