Prime -> 2010
[haskell-report.git] / report / lib-hdrs / Numeric.hs
1 module Numeric(fromRat,
2 showSigned, showIntAtBase,
3 showInt, showOct, showHex,
4 readSigned, readInt,
5 readDec, readOct, readHex,
6 floatToDigits,
7 showEFloat, showFFloat, showGFloat, showFloat,
8 readFloat, lexDigits) where
9
10 fromRat :: (RealFloat a) => Rational -> a
11
12 showSigned :: (Real a) => (a -> ShowS) -> Int -> a -> ShowS
13 showIntAtBase :: Integral a => a -> (Int -> Char) -> a -> ShowS
14 showInt :: Integral a => a -> ShowS
15 showOct :: Integral a => a -> ShowS
16 showHex :: Integral a => a -> ShowS
17
18 readSigned :: (Real a) => ReadS a -> ReadS a
19 readInt :: (Integral a) =>
20 a -> (Char -> Bool) -> (Char -> Int) -> ReadS a
21 readDec :: (Integral a) => ReadS a
22 readOct :: (Integral a) => ReadS a
23 readHex :: (Integral a) => ReadS a
24
25 showEFloat :: (RealFloat a) => Maybe Int -> a -> ShowS
26 showFFloat :: (RealFloat a) => Maybe Int -> a -> ShowS
27 showGFloat :: (RealFloat a) => Maybe Int -> a -> ShowS
28 showFloat :: (RealFloat a) => a -> ShowS
29
30 floatToDigits :: (RealFloat a) => Integer -> a -> ([Int], Int)
31
32 readFloat :: (RealFrac a) => ReadS a
33 lexDigits :: ReadS String