From 2f6fb6f51c0e141154d2330ebd44668f89410afa Mon Sep 17 00:00:00 2001 From: David Waern Date: Wed, 1 Sep 2010 19:03:27 +0000 Subject: Improve docs for --no-tmp-comp-dir --- doc/haddock.xml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/haddock.xml b/doc/haddock.xml index 39c4f9d2..8ca44b14 100644 --- a/doc/haddock.xml +++ b/doc/haddock.xml @@ -900,13 +900,16 @@ $ pdflatex package.tex - If the input modules use Template Haskell, Haddock has to - perform compilation (using GHC). This results in .o, .hi, and stub files that - are written to a temporary directory by default. When this flag is specified, - however, the files are written to the present directory (or another path if you - tell GHC, for example like this: --optghc=-odir --optghc=path). - Note that not only will files be written to this directory, GHC will also look for - already existing files there, and use them in order to skip compilation. + + Do not use a temporary directory for reading and writing compilation output files + (.o, .hi, and stub files). Instead, use the + present directory or another directory that you have explicitly told GHC to use + via the --optghc flag. + + + This flag can be used to avoid recompilation if compilation files already exist. + Compilation files are produced when Haddock has to process modules that make use of + Template Haskell, in which case Haddock compiles the modules using the GHC API. -- cgit v1.2.3