summaryrefslogtreecommitdiff
path: root/top/core-definitions.scm
blob: e86b355b65bc2eebba913146c928ed13b1084326 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
;;; This file defines core symbols - those in PreludeCore and
;;; other Prelude symbols used in compilation.

;;; This part is constructed from the export table of PreludeCore
;;; by 'top/prelude-core-syms' and has been pasted in here.


(DEFINE *haskell-prelude-vars*
  '((CLASSES "Num"
             "Integral"
             "Eq"
             "Text"
             "Fractional"
             "RealFloat"
             "RealFrac"
             "Enum"
             "Ix"
             "Floating"
             "Ord"
             "Real"
             "Binary")
    (METHODS "fromInteger"
             "signum"
             "abs"
             "negate"
             "*"
             "-"
             "+"
             "toInteger"
             "odd"
             "even"
             "divMod"
             "quotRem"
             "mod"
             "div"
             "rem"
             "quot"
             "/="
             "=="
             "showList"
             "readList"
             "showsPrec"
             "readsPrec"
             "fromRational"
             "recip"
             "/"
             "scaleFloat"
             "significand"
             "exponent"
             "encodeFloat"
             "decodeFloat"
             "floatRange"
             "floatDigits"
             "floatRadix"
             "floor"
             "ceiling"
             "round"
             "truncate"
             "properFraction"
             "enumFromThenTo"
             "enumFromTo"
             "enumFromThen"
             "enumFrom"
             "inRange"
             "index"
             "range"
             "atanh"
             "acosh"
             "asinh"
             "tanh"
             "cosh"
             "sinh"
             "atan"
             "acos"
             "asin"
             "tan"
             "cos"
             "sin"
             "logBase"
             "**"
             "sqrt"
             "log"
             "exp"
             "pi"
             "min"
             "max"
             ">"
             ">="
             "<="
             "<"
             "toRational"
             "showBin"
             "readBin")
    (TYPES "Char"
           "Complex"
           "Integer"
           "Double"
           "Bin"
           "Array"
           "Float"
           "Bool"
           "Int"
           "Assoc"
           "Ratio"
           "SystemState"
           "IOResult")
    (CONSTRUCTORS ":+" "True" "False" ":=" ":")
    (SYNONYMS "ShowS" "ReadS" "String" "Rational" "IO")
    (VALUES)))

;;; Non PreludeCore stuff

;;; This table defines all symbols in the core used internally by the
;;; compiler.

(define *haskell-noncore-vars* '(
  (types 
     "List"
     "Arrow"
     "Request"
     "Response"
     "UnitType"
     "TupleDicts")
  (constructors 
     "MkFloat"
     "MkDouble"
     "MkChar"
     "MkInteger"
     "MkInt"
     "Nil"
     "UnitConstructor")
  (values
    "&&"  "||"  "primPlusInt"
    "++" "take" "drop" "." "showChar" "shows" "showString"
    "showParen" "lex" "readParen" "reads"
    "primShowBinInt" "primReadBinSmallInt"
    "error"
    "primIntegerToInt" "primIntToInteger"
    "primRationalToFloat" "primRationalToDouble"
    "primNegInt" "primNegInteger" "primNegFloat" "primNegDouble" 
    "foldr" "build" "inlineFoldr" "inlineBuild" 
    "primAppend" "primStringEq"
    "dictSel" "tupleEqDict" "tupleOrdDict" "tupleIxDict"
    "tupleTextDict" "tupleBinaryDict")))