Am Freitag, 21. November 2003, 13:42 schrieb Simon Marlow:
[...]
Hello again, thanks for your response.
There are two issues:
Q. Will Haddock parse a file containing Template Haskell code? A. No, the parser doesn't currently understand the TH extensions.
Is it planned to let it understand the extensions in the near future?
Q. Can you generate Haddock documentation for code *generated* by a TH splice? A. It only really makes sense for top-level splices, and you would have to arrange to dump the generated code from GHC and feed it into Haddock (this sounds like quite a lot of work to get GHC to dump parseable Haskell code). Or merge GHC with Haddock :-)
I thought there was an option letting GHC output the code which results from processing the Template Haskell stuff. Am I in error here? What is the best way of using TH while still using Haddock. Is there a way at all?
Cheers, Simon
Wolfgang