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)
13 #if __GLASGOW_HASKELL__ >= 504
15 #define CONCURRENT Control.Concurrent
16 #define EXCEPTION Control.Exception
17 #define DYNAMIC Data.Dynamic
18 #define GLAEXTS GHC.Exts
19 #define DATA_BITS Data.Bits
20 #define DATA_INT Data.Int
21 #define DATA_WORD Data.Word
22 #define UNSAFE_IO System.IO.Unsafe
23 #define TRACE Debug.Trace
24 #define DATA_IOREF Data.IORef
25 #define FIX_IO System.IO
29 #define CONCURRENT Concurrent
30 #define EXCEPTION Exception
31 #define DYNAMIC Dynamic
32 #define GLAEXTS GlaExts
33 #define DATA_BITS Bits
35 #define DATA_WORD Word
36 #define UNSAFE_IO IOExts
38 #define DATA_IOREF IOExts
43 #ifdef __GLASGOW_HASKELL__
44 #define GLOBAL_VAR(name,value,ty) \
45 name = Util.global (value) :: IORef (ty); \
52 #define ASSERT(e) if (not (e)) then (assertPanic __FILE__ __LINE__) else
53 #define ASSERT2(e,msg) if (not (e)) then (assertPprPanic __FILE__ __LINE__ (msg)) else
54 #define WARN( e, msg ) (warnPprTrace (e) __FILE__ __LINE__ (msg))
57 #define ASSERT2(e,msg)
61 -- temporary usage assertion control KSW 2000-10
63 #define UASSERT(e) ASSERT(e)
64 #define UASSERT2(e,msg) ASSERT2(e,msg)
67 #define UASSERT2(e,msg)
70 -- This #ifndef lets us switch off the "import FastString"
71 -- when compiling FastString itself
72 #ifndef COMPILING_FAST_STRING
74 import qualified FastString
77 #define SLIT(x) (FastString.mkLitString# (x#))
78 #define FSLIT(x) (FastString.mkFastString# (x#))
80 #endif // HSVERSIONS_H