Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ghcWithHoogle: fix haddocks for GHCJS builtin libs

+4 -1
+4 -1
pkgs/development/haskell-modules/hoogle.nix
··· 31 inherit (stdenv.lib) optional; 32 wrapper = ./hoogle-local-wrapper.sh; 33 isGhcjs = ghc.isGhcjs or false; 34 haddockExe = 35 if !isGhcjs 36 then "haddock" ··· 79 80 echo importing builtin packages 81 for docdir in ${ghc}/${docLibGlob}/*; do 82 if [[ -d $docdir ]]; then 83 import_dbs $docdir 84 - ln -sfn $docdir $out/share/doc/hoogle 85 fi 86 done 87
··· 31 inherit (stdenv.lib) optional; 32 wrapper = ./hoogle-local-wrapper.sh; 33 isGhcjs = ghc.isGhcjs or false; 34 + opts = lib.optionalString; 35 haddockExe = 36 if !isGhcjs 37 then "haddock" ··· 80 81 echo importing builtin packages 82 for docdir in ${ghc}/${docLibGlob}/*; do 83 + name="$(basename $docdir)" 84 + ${opts isGhcjs ''docdir="$docdir/html"''} 85 if [[ -d $docdir ]]; then 86 import_dbs $docdir 87 + ln -sfn $docdir $out/share/doc/hoogle/$name 88 fi 89 done 90