Make :doc work for the ghc library
AcceptedPublic

Authored by sjakobi on Sat, Jun 30, 7:09 PM.

Details

Reviewers
bgamari
Summary

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.

sjakobi created this revision.Sat, Jun 30, 7:09 PM

I've realized that I've forked this branch off master although I want this change to go onto the ghc-8.6 branch. Do I need to change something?

So you only want this applied to ghc-8.6?

Sorry, I wasn't clear. This change should be useful on both master and ghc-8.6.

bgamari accepted this revision.Thu, Jul 12, 5:21 PM

It would be interesting to know how much of an effect this has on interface file sizes. I doubt it's much , but it would be a good measurement to do. I'll try to characterise this as I merge.

This revision is now accepted and ready to land.Thu, Jul 12, 5:21 PM