summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadrian/doc/flavours.md2
-rw-r--r--hadrian/src/Settings/Default.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/doc/flavours.md b/hadrian/doc/flavours.md
index 45479f8f68..689c3f1742 100644
--- a/hadrian/doc/flavours.md
+++ b/hadrian/doc/flavours.md
@@ -38,7 +38,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<td>-O<br>-H64m<br></td>
<td>-O2<br>-H64m</td>
<td></td>
- <td></td>
+ <td>-haddock</td>
<td></td>
<td></td>
<td></td>
diff --git a/hadrian/src/Settings/Default.hs b/hadrian/src/Settings/Default.hs
index 83a3a9905e..05e98555ea 100644
--- a/hadrian/src/Settings/Default.hs
+++ b/hadrian/src/Settings/Default.hs
@@ -195,7 +195,7 @@ defaultSourceArgs = SourceArgs
{ hsDefault = mconcat [ stage0 ? arg "-O"
, notStage0 ? arg "-O2"
, arg "-H32m" ]
- , hsLibrary = mempty
+ , hsLibrary = notStage0 ? arg "-haddock"
, hsCompiler = mempty
, hsGhc = mempty }