nixpkgs/pkgs
Pepe Iborra d68033afae haskellPackages.mkDerivation: add doHaddockInterfaces option
This adds a new builder option `doHaddockInterfaces` to enable the -haddock flag in GHC,
which results in Haddock comments parsed at compile-time and embedded in
interface files. These are used by the :doc command in GHCi, as well as IDE
tools like ghcide and hls to display docs on hover.

The `-haddock` flag has been around since at least 8.2, even though it does not
get a mention in the GHC Users guide.

There are two downsides to turning on this flag:

1. Increased compile times, since Haddocks must be parsed and then encoded
2. Haddock parse errors now become compile errors for GHC < 9.0.1
   (https://gitlab.haskell.org/ghc/ghc/-/issues/8944)

Thus we only enable the feature if we have GHC 9.0.1 and haddock is
enabled; when 9.0.1 becomes the default GHC, we may need to reevaluate
the performance concern.

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2021-11-10 21:10:35 +01:00
..
applications Merge master into haskell-updates 2021-11-10 00:07:08 +00:00
build-support Merge pull request #144693 from mkg20001/fetchgit-hash 2021-11-09 22:22:19 +01:00
common-updater
data Merge master into haskell-updates 2021-11-10 00:07:08 +00:00
desktops gnome.gnome-todo: Use patch to fix build race condition 2021-11-09 08:00:18 -08:00
development haskellPackages.mkDerivation: add doHaddockInterfaces option 2021-11-10 21:10:35 +01:00
games Merge pull request #144709 from flexagoon/tpt-desktop 2021-11-09 19:16:41 -03:00
misc Merge pull request #136765 from magnetophon/jackaudio 2021-11-09 22:40:13 +01:00
os-specific netbsd: add missing rsync native build inputs 2021-11-09 22:53:22 +00:00
pkgs-lib
servers Merge pull request #145248 from tfmoraes/xwayland-21.1.3 2021-11-09 22:11:02 +01:00
shells
stdenv
test Merge master into haskell-updates 2021-11-09 00:10:05 +00:00
tools Merge master into haskell-updates 2021-11-10 00:07:08 +00:00
top-level Merge master into haskell-updates 2021-11-10 00:07:08 +00:00