File tree 1 file changed +5
-5
lines changed
pkgs/development/haskell-modules
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 40
40
if ! isGhcjs
41
41
then "ghc"
42
42
else "ghcjs" ;
43
- docLibGlob =
43
+ ghcDocLibDir =
44
44
if ! isGhcjs
45
- then '' share/doc/ghc*/html/libraries''
46
- else '' doc/lib'';
45
+ then ghc . doc + ''/ share/doc/ghc*/html/libraries''
46
+ else ghc + ''/ doc/lib'';
47
47
# On GHCJS, use a stripped down version of GHC's prologue.txt
48
48
prologue =
49
49
if ! isGhcjs
50
- then "${ ghc . doc } / ${ docLibGlob } /prologue.txt"
50
+ then "${ ghcDocLibDir } /prologue.txt"
51
51
else writeText "ghcjs-prologue.txt" ''
52
52
This index includes documentation for many Haskell modules.
53
53
'' ;
@@ -67,7 +67,7 @@ stdenv.mkDerivation {
67
67
mkdir -p $out/share/doc/hoogle
68
68
69
69
echo importing builtin packages
70
- for docdir in ${ ghc . doc } / ${ docLibGlob } /*; do
70
+ for docdir in ${ ghcDocLibDir } /*; do
71
71
name="$(basename $docdir)"
72
72
${ opts isGhcjs ''docdir="$docdir/html"'' }
73
73
if [[ -d $docdir ]]; then
You can’t perform that action at this time.
0 commit comments