Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nixos/haskell: Added quickjump option to the haskell mkDerivation
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation.
  • Loading branch information
mgttlinger committed Dec 29, 2019
1 parent 2ec87b2 commit a6ec12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -24,6 +24,7 @@ in
, doCheck ? !isCross && stdenv.lib.versionOlder "7.4" ghc.version
, doBenchmark ? false
, doHoogle ? true
, doHaddockQuickjump ? doHoogle
, editedCabalFile ? null
, enableLibraryProfiling ? !(ghc.isGhcjs or false)
, enableExecutableProfiling ? false
Expand Down Expand Up @@ -396,6 +397,7 @@ stdenv.mkDerivation ({
${optionalString (doHaddock && isLibrary) ''
${setupCommand} haddock --html \
${optionalString doHoogle "--hoogle"} \
${optionalString doHaddockQuickjump "--quickjump"} \
${optionalString (isLibrary && hyperlinkSource) "--hyperlink-source"} \
${stdenv.lib.concatStringsSep " " haddockFlags}
''}
Expand Down

0 comments on commit a6ec12d

Please sign in to comment.