From 25e1ea997524b1d9f9b1fc065b17e618b8f16f18 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Thu, 26 Jul 2018 17:17:17 -0400 Subject: Make :doc work for the ghc library We already include -haddock in the GhcLibHcOpts in order to include the boot libraries' docs in their .hi-files. By including -haddock in the GhcStage2HcOpts and GhcStage3HcOpts, we make the docs for the ghc library also available to the GHCi :doc command. Reviewers: bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4913 --- mk/config.mk.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/config.mk.in b/mk/config.mk.in index c97f5517c3..90579fbec2 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -66,9 +66,12 @@ GhcHcOpts=-Rghc-timing # override options from $(GhcHcOpts). # # See Note [Stage number in build variables]. +# +# -haddock is needed so the GHCi :doc command can find docs +# in the .hi-files for the ghc library GhcStage1HcOpts= -GhcStage2HcOpts=-O2 -GhcStage3HcOpts=-O2 +GhcStage2HcOpts=-O2 -haddock +GhcStage3HcOpts=-O2 -haddock # Note [Stage number in build variables]. -- cgit v1.2.1