What’s needed to bootstrap GHC with hugs?

Thanks linj, it’s pretty clear from the discussion above Hugs was never used to bootstrap GHC.

Also note that there is no need to have a Haskell compiler to run MicroHs. All you need is a C compiler, and MicroHs can bootstrap, given the included combinator file.

Hugs won’t know anything about those combinators. (Unless, I suppose, you create an interpreter for them.) And anyway we never got to the bottom of whether Hugs is genuinely bootstrappable from C++.

And most C compilers have been compiled from older versions of themselves.


@linj, my advice would be to find the latest version of GHC:

  • that can be compiled by MicroHs,
  • and can compile MicroHs.

Then you or anyone else can use the mitigation technique Yrjan Skrimstad describes in his thesis. The resulting version of GHC can then be used to start the (long) sequence of compilations needed to arrive at the current version of GHC.