diff options
author | Peter Simons <simons@cryp.to> | 2017-08-19 16:37:56 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-08-19 17:19:47 +0200 |
commit | 01b8c4c9e54082f9ddd01b3d6fe6e3a54ba9996f (patch) | |
tree | 6453b2d91b5c38e34497dada903842fd0b53d235 | |
parent | 1ddf621b4ede470ccb430e7e46f350df8f5b9438 (diff) |
ghcWithHoogle: cosmetic for the sake of Emacs syntax highlighting
-rw-r--r-- | pkgs/development/haskell-modules/hoogle.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix index 65124d4c7006c..a0057c141f27f 100644 --- a/pkgs/development/haskell-modules/hoogle.nix +++ b/pkgs/development/haskell-modules/hoogle.nix @@ -74,7 +74,7 @@ stdenv.mkDerivation { mkdir -p $out/share/doc/hoogle echo importing builtin packages - for docdir in ${ghcDocLibDir}/*; do + for docdir in ${ghcDocLibDir}"/"*; do name="$(basename $docdir)" ${opts isGhcjs ''docdir="$docdir/html"''} if [[ -d $docdir ]]; then @@ -99,8 +99,7 @@ stdenv.mkDerivation { cd $out/share/doc/hoogle args= - for hdfile in `ls -1 */*.haddock | grep -v '/ghc\.haddock' | sort` - do + for hdfile in $(ls -1 *"/"*.haddock | grep -v '/ghc\.haddock' | sort); do name_version=`echo "$hdfile" | sed 's#/.*##'` args="$args --read-interface=$name_version,$hdfile" done |