5 -- Everything from these modules
12 Ord(..), Ordering(..),
15 Show(..), ShowS, shows, show, showChar, showString, showParen,
17 Eval(..), seq, strict,
18 Bool(..), (&&), (||), not, otherwise,
19 Char, String, Int, Integer, Float, Double,
22 ()(..), -- The unit type
25 id, const, (.), flip, ($), until, asTypeOf, undefined,
31 Functor(..), Monad(..), MonadZero(..), MonadPlus(..),
32 accumulate, sequence, mapM, mapM_, guard, filter, concat, applyM,
38 ReadS, Read(readsPrec, readList),
39 reads, read, lex, readParen,
45 (%), numerator, denominator, approxRational,
47 Num((+), (-), (*), negate, abs, signum, fromInteger),
49 Integral(quot, rem, div, mod, quotRem, divMod, toInteger, toInt{-partain-}),
50 Fractional((/), recip, fromRational),
51 Floating(pi, exp, log, sqrt, (**), logBase, sin, cos, tan,
52 asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh),
53 RealFrac(properFraction, truncate, round, ceiling, floor),
54 RealFloat(floatRadix, floatDigits, floatRange, decodeFloat,
55 encodeFloat, exponent, significand, scaleFloat, isNaN,
56 isInfinite, isDenormalized, isIEEE, isNegativeZero),
57 subtract, even, odd, gcd, lcm, (^), (^^),
58 fromIntegral, fromRealFrac, atan2
69 import IOBase ( error )
71 -- These can't conveniently be defined in PrelBase because they use numbers,
72 -- or I/O, so here's a convenient place to do them.
74 strict :: Eval a => (a -> b) -> a -> b
75 strict f x = x `seq` f x
78 #ifdef __CONCURRENT_HASKELL__
79 seq x y = case (seq# x) of { 0# -> parError; _ -> y }
84 -- It is expected that compilers will recognize this and insert error
85 -- messages which are more appropriate to the context in which undefined
89 undefined = error "Prelude.undefined"