[project @ 1996-01-18 16:33:17 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
68
69     ) where
70
71 -- few *Ty(s) imports
72 import TyArray          ( Array(..), Assoc(..), _ByteArray )
73 import TyComplex        ( Complex(..) )
74 import TyIO
75 --import Builtin        ( trace )
76 import Cls      hiding  ( String )
77 import Core
78 import PreludeGlaST     ( _MutableByteArray, _MutableArray )
79 import IArray
80 import IBool
81 import IChar
82 import IComplex
83 import IDouble
84 import IFloat
85 import IInt
86 import IInteger
87 import IList
88 import IO
89 import IRatio
90 import ITup0
91 import ITup2
92 import ITup3
93 import ITup4
94 import ITup5
95 import List
96 import Prel
97 import Text
98 import PS