[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / lib / prelude / PreludeHi.hs
1 -- compiled solely to produce an .hi file
2 --
3 module Prelude (
4
5         -- NO: really builtin (0.20+): trace,
6
7         (%), numerator, denominator, approxRational,
8
9         realPart, imagPart, conjugate, mkPolar, cis,
10         polar, magnitude, phase,
11
12         _appendPS, _breakPS, _concatPS, _dropPS, _dropWhilePS,
13         _filterPS, _foldlPS, _foldrPS, _headPS, _indexPS, _lengthPS,
14         _linesPS, _mapPS, _nilPS, _consPS, _nullPS, _packCBytes,
15         _packCString, _packString, _byteArrayToPS, _psToByteArray,
16         _reversePS, _spanPS, _splitAtPS, _substrPS, _tailPS, _takePS,
17         _takeWhilePS, _unpackPS, _wordsPS, _putPS,
18
19         (&&), (||), not, otherwise,
20         (^), (^^), appendBin, asTypeOf, atan2, fromIntegral,
21         fromRealFrac, gcd, isAlpha, isAlphanum, isAscii, isControl,
22         isDigit, isLower, isNullBin, isPrint, isSpace, isUpper, lcm,
23         maxChar, maxInt, minChar, minInt, nullBin, subtract, toLower,
24         toUpper, until, fst, snd, id, const, (.), flip, ($),
25         ord, chr,
26
27 #if defined(__UNBOXED_INSTANCES__)
28         minInt#, maxInt#,
29         minChar#, maxChar#,
30         toChar#, fromChar#,
31         isAscii#, isControl#, isPrint#, isSpace#, 
32         isUpper#, isLower#, isAlpha#, isDigit#, isAlphanum#,
33         toUpper#, toLower#,
34 #endif
35
36         head, last, tail, init, null, (++), (\\), genericLength,
37         length, (!!), map, filter, partition, {-BUILTIN: foldl,-}
38         foldl1, scanl, scanl1, {-BUILTIN: foldr,-} foldr1, scanr, scanr1,
39         iterate, repeat, cycle, take, drop, splitAt, takeWhile,
40         dropWhile, span, break, lines, words, unlines, unwords, nub,
41         reverse,  and, or, any, all, elem, notElem, sum,
42         product, sums, products, maximum, minimum, concat,
43         transpose, zip, zip3, zip4, zip5, zip6, zip7, zipWith,
44         zipWith3, zipWith4, zipWith5, zipWith6, zipWith7, unzip,
45         unzip3, unzip4, unzip5, unzip6, unzip7,
46
47         array, listArray, (!), bounds, indices, elems, assocs,
48         accumArray, (//), accum, amap, ixmap,
49
50         reads, shows, show, read, lex, showChar, showString,
51         readParen, showParen, readLitChar, showLitChar, readSigned,
52         showSigned, showSpace__, readDec, showInt, readFloat, showFloat,
53         _showHex, _showRadix, _showDigit, -- non-std
54         _readList, _showList, _truncate, _round, _ceiling, _floor,
55
56         _readRational, _showRational, -- extras!
57
58         stdin, stdout, stderr, stdecho, done, readFile, writeFile,
59         appendFile, readBinFile, writeBinFile, appendBinFile,
60         deleteFile, statusFile, readChan, appendChan, readBinChan,
61         appendBinChan, statusChan, echo, getArgs, getProgName, getEnv,
62         setEnv, sigAction, abort, exit, print, prints, interact,
63         strDispatch, strListDispatch, binDispatch, succDispatch,
64
65         -- and for foldr/build
66         _build
67
68     ) where
69
70 -- few *Ty(s) imports
71 import TyArray          ( Array(..), Assoc(..), _ByteArray )
72 import TyComplex        ( Complex(..) )
73 import TyIO
74 --import Builtin        ( trace )
75 import Cls      hiding  ( String )
76 import Core
77 import PreludeGlaST     ( _MutableByteArray, _MutableArray )
78 import IArray
79 import IBool
80 import IChar
81 import IComplex
82 import IDouble
83 import IFloat
84 import IInt
85 import IInteger
86 import IList
87 import IO
88 import IRatio
89 import ITup0
90 import ITup2
91 import ITup3
92 import ITup4
93 import ITup5
94 import List
95 import Prel
96 import Text
97 import PS