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 -- $Id: Prelude.hs,v 1.3 2002/04/24 16:31:37 simonmar Exp $
14 -- Standard module imported by default into Haskell modules.
16 -----------------------------------------------------------------------------
23 map, (++), filter, concat,
24 head, last, tail, init, null, length, (!!),
25 foldl, foldl1, scanl, scanl1, foldr, foldr1, scanr, scanr1,
26 iterate, repeat, replicate, cycle,
27 take, drop, splitAt, takeWhile, dropWhile, span, break,
29 any, all, elem, notElem, lookup,
30 maximum, minimum, concatMap,
31 zip, zip3, zipWith, zipWith3, unzip, unzip3,
33 lines, words, unlines, unwords,
36 -- Everything from Text.Read and Text.Show
38 Read(readsPrec, readList),
39 Show(showsPrec, showList, show),
40 reads, shows, read, lex,
41 showChar, showString, readParen, showParen,
43 -- Everything corresponding to the Report's PreludeIO
44 ioError, userError, catch,
47 putStr, putStrLn, print,
49 getLine, getContents, interact,
50 readFile, writeFile, appendFile, readIO, readLn,
56 Char, String, Int, Integer, Float, Double, IO,
61 -- Includes tuple types + fst, snd, curry, uncurry
62 ()(..), -- The unit type
77 -- Monad stuff, from GHC.Base, and defined here
80 mapM, mapM_, sequence, sequence_, (=<<),
83 (&&), (||), not, otherwise,
84 subtract, even, odd, gcd, lcm, (^), (^^),
85 fromIntegral, realToFrac,
86 --exported by Data.Tuple: fst, snd, curry, uncurry,
87 id, const, (.), flip, ($), until,
88 asTypeOf, error, undefined,
103 #ifdef __GLASGOW_HASKELL__
114 import GHC.Err ( error, undefined )
120 -- -----------------------------------------------------------------------------
121 -- Miscellaneous functions
123 ($!) :: (a -> b) -> a -> b