1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
5 -- Copyright : (c) The University of Glasgow 2001
6 -- License : BSD-style (see the file libraries/core/LICENSE)
8 -- Maintainer : libraries@haskell.org
9 -- Stability : provisional
10 -- Portability : portable
12 -- Standard module imported by default into Haskell modules.
14 -----------------------------------------------------------------------------
21 map, (++), filter, concat,
22 head, last, tail, init, null, length, (!!),
23 foldl, foldl1, scanl, scanl1, foldr, foldr1, scanr, scanr1,
24 iterate, repeat, replicate, cycle,
25 take, drop, splitAt, takeWhile, dropWhile, span, break,
27 any, all, elem, notElem, lookup,
28 maximum, minimum, concatMap,
29 zip, zip3, zipWith, zipWith3, unzip, unzip3,
31 lines, words, unlines, unwords,
34 -- Everything from Text.Read and Text.Show
36 Read(readsPrec, readList),
37 Show(showsPrec, showList, show),
38 reads, shows, read, lex,
39 showChar, showString, readParen, showParen,
41 -- Everything corresponding to the Report's PreludeIO
42 ioError, userError, catch,
45 putStr, putStrLn, print,
47 getLine, getContents, interact,
48 readFile, writeFile, appendFile, readIO, readLn,
54 Char, String, Int, Integer, Float, Double, IO,
59 -- Includes tuple types + fst, snd, curry, uncurry
60 ()(..), -- The unit type
75 -- Monad stuff, from GHC.Base, and defined here
78 mapM, mapM_, sequence, sequence_, (=<<),
81 (&&), (||), not, otherwise,
82 subtract, even, odd, gcd, lcm, (^), (^^),
83 fromIntegral, realToFrac,
84 --exported by Data.Tuple: fst, snd, curry, uncurry,
85 id, const, (.), flip, ($), until,
86 asTypeOf, error, undefined,
101 #ifdef __GLASGOW_HASKELL__
112 import GHC.Err ( error, undefined )
118 -- -----------------------------------------------------------------------------
119 -- Miscellaneous functions
121 ($!) :: (a -> b) -> a -> b