Hadrian: Add -haddock option for GHCi's :doc command
This commit adds -haddock
option to Hadrian-based build system.
To enable :doc
command on GHCi, core libraries must be compiled
with -haddock
option.
Especially, the -haddock
option is essential for a release build.
Assuming current GitLab CI condition (.gitlab-ci.yml
),
I add -haddock
option to the default flavour only.
This has already been done for Make-based build system. Please see #16415 (closed).