summaryrefslogtreecommitdiff
path: root/ghc/compiler/utils/FastString.lhs
diff options
context:
space:
mode:
authorqrczak <unknown>2001-05-19 20:20:56 +0000
committerqrczak <unknown>2001-05-19 20:20:56 +0000
commit64eab5d02c8ac0685f94e00d452f7dfda03e45d9 (patch)
tree8c00fcd73ef8fd83d5641839fedcef53cd1485b5 /ghc/compiler/utils/FastString.lhs
parentce39729dc87ecaf0fa440605dcd3d064350072e7 (diff)
downloadhaskell-64eab5d02c8ac0685f94e00d452f7dfda03e45d9.tar.gz
[project @ 2001-05-19 20:20:56 by qrczak]
Make ghc compilable with itself after the implementation of handle IO changed, by changing an ugly mess of #ifdefs and low-level ghc-internals-specific kludges into a yet uglier mess with more #ifdefs and kludges. Wouldn't Haskell 98 implementation of a lexer be fast enough? :-) This won't compile with older versions of ghc-5.01. You may temporarily change 501 to 502 in #ifdefs here, or use an older ghc. The compiler still doesn't work at all when compiled with itself: it writes complete nonsense into .hc files. A remaining error: ghc/lib/std doesn't link PrelHandle_hsc.o into libHSstd.a. Function read_wrap is inline but for some reason it's needed for linking some programs (e.g. ghc itself).
Diffstat (limited to 'ghc/compiler/utils/FastString.lhs')
-rw-r--r--ghc/compiler/utils/FastString.lhs5
1 files changed, 2 insertions, 3 deletions
diff --git a/ghc/compiler/utils/FastString.lhs b/ghc/compiler/utils/FastString.lhs
index bb0a02f815..691353962d 100644
--- a/ghc/compiler/utils/FastString.lhs
+++ b/ghc/compiler/utils/FastString.lhs
@@ -78,10 +78,9 @@ import PrelIOBase ( Handle__(..), IOError, IOErrorType(..),
IOResult(..),
#endif
IO(..),
-#if __GLASGOW_HASKELL__ >= 303
- Handle__Type(..),
-#endif
+#if __GLASGOW_HASKELL__ >= 301 && __GLASGOW_HASKELL__ <= 302
constructError
+#endif
)
#endif