[project @ 1996-01-22 18:37:39 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         toInt#, fromInt#,
30         minChar#, maxChar#,
31         toChar#, fromChar#,
32         isAscii#, isControl#, isPrint#, isSpace#, 
33         isUpper#, isLower#, isAlpha#, isDigit#, isAlphanum#,
34         toUpper#, toLower#,
35 #endif
36
37         head, last, tail, init, null, (++), (\\), genericLength,
38         length, (!!), map, filter, partition, {-BUILTIN: foldl,-}
39         foldl1, scanl, scanl1, {-BUILTIN: foldr,-} foldr1, scanr, scanr1,
40         iterate, repeat, cycle, take, drop, splitAt, takeWhile,
41         dropWhile, span, break, lines, words, unlines, unwords, nub,
42         reverse,  and, or, any, all, elem, notElem, sum,
43         product, sums, products, maximum, minimum, concat,
44         transpose, zip, zip3, zip4, zip5, zip6, zip7, zipWith,
45         zipWith3, zipWith4, zipWith5, zipWith6, zipWith7, unzip,
46         unzip3, unzip4, unzip5, unzip6, unzip7,
47
48         array, listArray, (!), bounds, indices, elems, assocs,
49         accumArray, (//), accum, amap, ixmap,
50
51         reads, shows, show, read, lex, showChar, showString,
52         readParen, showParen, readLitChar, showLitChar, readSigned,
53         showSigned, showSpace__, readDec, showInt, readFloat, showFloat,
54         _showHex, _showRadix, _showDigit, -- non-std
55         _readList, _showList,
56
57         _readRational, _showRational, -- extras!
58
59         stdin, stdout, stderr, stdecho, done, readFile, writeFile,
60         appendFile, readBinFile, writeBinFile, appendBinFile,
61         deleteFile, statusFile, readChan, appendChan, readBinChan,
62         appendBinChan, statusChan, echo, getArgs, getProgName, getEnv,
63         setEnv, sigAction, abort, exit, print, prints, interact,
64         strDispatch, strListDispatch, binDispatch, succDispatch,
65
66         -- and for foldr/build
67         _build, _augment, 
68
69         _newArray, _freezeArray, _arrEleBottom,
70         _rangeComplaint_Ix_Int
71     ) where
72
73 -- few *Ty(s) imports
74 import TyArray          ( Array(..), Assoc(..), _ByteArray )
75 import TyComplex        ( Complex(..) )
76 import TyIO
77 --import Builtin        ( trace )
78 import Cls      hiding  ( String )
79 import Core
80 import PreludeGlaST     ( _MutableByteArray, _MutableArray )
81 import IArray
82 import IBool
83 import IChar
84 import IComplex
85 import IDouble
86 import IFloat
87 import IInt
88 import IInteger
89 import IList
90 import IO
91 import IRatio
92 import ITup0
93 import ITup2
94 import ITup3
95 import ITup4
96 import ITup5
97 import List
98 import Prel
99 import Text
100 import PS