6 IMPORTANT! If you put extra tabs/spaces in these macro definitions,
7 you will screw up the layout where they are used in case expressions!
9 (This is cpp-dependent, of course)
16 #define ASSERT(e) if (not (e)) then (assertPanic __FILE__ __LINE__) else
24 #define CAT2(a,b)a/**/b
27 #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 200
28 # define REALLY_HASKELL_1_3
30 # define EXP_MODULE(a) module a
31 # define IMPORT_DELOOPER(mod) import CAT2(mod,_1_3)
32 # define IMPORT_1_3(mod) import mod
33 # define _tagCmp compare
37 # define _Addr GHCbase.Addr
39 # define IMP_Ubiq() IMPORT_DELOOPER(Ubiq); import qualified GHCbase
40 # define CHK_Ubiq() IMPORT_DELOOPER(Ubiq); import qualified GHCbase
41 # define minInt (minBound::Int)
42 # define maxInt (maxBound::Int)
44 # define SYN_IE(a) a(..)
45 # define EXP_MODULE(a) a..
46 # define IMPORT_DELOOPER(mod) import mod
47 # define IMPORT_1_3(mod) {--}
48 # define IMP_Ubiq() IMPORT_DELOOPER(Ubiq)
49 # define CHK_Ubiq() IMPORT_DELOOPER(Ubiq)
52 #if __GLASGOW_HASKELL__ >= 26 && __GLASGOW_HASKELL__ < 200
62 #if defined(__GLASGOW_HASKELL__)
65 #define IBOX(x) (I# (x))
66 #define _ADD_ `plusInt#`
67 #define _SUB_ `minusInt#`
68 #define _MUL_ `timesInt#`
69 #define _DIV_ `divInt#`
70 #define _QUOT_ `quotInt#`
71 #define _NEG_ negateInt#
78 #define FAST_BOOL Int#
81 #define _IS_TRUE_(x) ((x) `eqInt#` 1#)
83 #else {- ! __GLASGOW_HASKELL__ -}
100 #define FAST_BOOL Bool
102 #define _FALSE_ False
103 #define _IS_TRUE_(x) (x)
105 #endif {- ! __GLASGOW_HASKELL__ -}
107 #if __GLASGOW_HASKELL__ >= 23
108 # define USE_FAST_STRINGS 1
109 # if __GLASGOW_HASKELL__ < 200
110 # define FAST_STRING _PackedString
111 # define SLIT(x) (_packCString (A# x#))
112 # define _CMP_STRING_ cmpPString
113 # define _NULL_ _nullPS
114 # define _NIL_ _nilPS
115 # define _CONS_ _consPS
116 # define _HEAD_ _headPS
117 # define _TAIL_ _tailPS
118 # define _LENGTH_ _lengthPS
119 # define _PK_ _packString
120 # define _UNPK_ _unpackPS
121 # define _SUBSTR_ _substrPS
122 # define _APPEND_ `_appendPS`
123 # define _CONCAT_ _concatPS
125 # define FAST_STRING GHCbase.PackedString
126 # define SLIT(x) (packCString (GHCbase.A# x#))
127 # define _CMP_STRING_ cmpPString
128 # define _NULL_ nullPS
130 # define _CONS_ consPS
131 # define _HEAD_ headPS
132 # define _TAIL_ tailPS
133 # define _LENGTH_ lengthPS
134 # define _PK_ packString
135 # define _UNPK_ unpackPS
136 # define _SUBSTR_ substrPS
137 # define _APPEND_ `appendPS`
138 # define _CONCAT_ concatPS
141 # define FAST_STRING String
143 # define _CMP_STRING_ cmpString
149 # define _LENGTH_ length
150 # define _PK_ (\x->x)
151 # define _UNPK_ (\x->x)
152 # define _SUBSTR_ substr{-from Utils-}
154 # define _CONCAT_ concat