1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
5 -- Copyright : (c) The University of Glasgow 2001
6 -- License : BSD-style (see the file libraries/base/LICENSE)
8 -- Maintainer : libraries@haskell.org
9 -- Stability : provisional
10 -- Portability : portable
12 -- The Prelude: a standard module imported by default into all Haskell
13 -- modules. For more documentation, see the Haskell 98 Report
14 -- <http://www.haskell.org/onlinereport/>.
16 -----------------------------------------------------------------------------
25 Char, String, Int, Integer, Float, Double, IO,
30 -- Includes tuple types + fst, snd, curry, uncurry
31 ()(..), -- The unit type
34 -- * Basic type classes
48 map, (++), filter, concat,
49 head, last, tail, init, null, length, (!!),
50 foldl, foldl1, scanl, scanl1, foldr, foldr1, scanr, scanr1,
51 iterate, repeat, replicate, cycle,
52 take, drop, splitAt, takeWhile, dropWhile, span, break,
54 any, all, elem, notElem, lookup,
55 maximum, minimum, concatMap,
56 zip, zip3, zipWith, zipWith3, unzip, unzip3,
58 lines, words, unlines, unwords,
61 -- * Converting to and from @String@
63 Read(readsPrec, readList),
64 Show(showsPrec, showList, show),
65 reads, shows, read, lex,
66 showChar, showString, readParen, showParen,
68 -- * Simple I\/O operations
69 ioError, userError, catch,
72 putStr, putStrLn, print,
74 getLine, getContents, interact,
75 readFile, writeFile, appendFile, readIO, readLn,
80 mapM, mapM_, sequence, sequence_, (=<<),
82 -- * Miscellaneous functions
84 (&&), (||), not, otherwise,
85 subtract, even, odd, gcd, lcm, (^), (^^),
86 fromIntegral, realToFrac,
87 --exported by Data.Tuple: fst, snd, curry, uncurry,
88 id, const, (.), flip, ($), until,
89 asTypeOf, error, undefined,
104 #ifdef __GLASGOW_HASKELL__
115 import GHC.Err ( error, undefined )
121 -- -----------------------------------------------------------------------------
122 -- Miscellaneous functions
124 ($!) :: (a -> b) -> a -> b