Alastair,
A third solution which I haven't tried yet but might try soon is to
write a dumb (possibly very dumb) implementation of Readline in pure
Haskell and have Readline use the dumb implementation if the C library
and headers aren't available. I'm in two minds about this approach
Recompiling ghc-5.00 with itself on my debian linux box, failed pretty
early for me when generating dependencies in ghc/compiler. It seems
that my build of hslibs/*/Readline had (silently?) failed while
building ghc 5.0 with my old compiler and so dependency generation
failed.
Obviously,