[project @ 2001-05-19 20:20:56 by qrczak]
authorqrczak <unknown>
Sat, 19 May 2001 20:20:56 +0000 (20:20 +0000)
committerqrczak <unknown>
Sat, 19 May 2001 20:20:56 +0000 (20:20 +0000)
commit64eab5d02c8ac0685f94e00d452f7dfda03e45d9
tree8c00fcd73ef8fd83d5641839fedcef53cd1485b5
parentce39729dc87ecaf0fa440605dcd3d064350072e7
[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).
ghc/compiler/utils/FastString.lhs
ghc/compiler/utils/StringBuffer.lhs