
Would someone cares to write this new backend to "genprimopcode". The latter is a Haskell program that can parse primops.txt.pp, and already has two back ends (a) and (b) above. What we want is to add (c) generate Haskell that Haddock can understand.
Note that the documentation itself is already written -- it's in primpos.txt.pp. That's what's so tantalising. All that we need is to mangle it into Haddock.
Any volunteers? It doesn't involve touching GHC itself. "gemprimopcode" is a completely standalone Haskell program, currently some 730 lines long.
If no one else is willing to do it, count me in. But before I agree to this task, I have some further questions: * How much time will it probably take? I know this depends on one's Haskell proficiency, so what is your estimate for an advanced Haskell programmer? * My first guess is this will only (?) involve writing a function similar to 'gen_latex_doc', is that correct? Regards, Jens