diff options
author | Ben Sima <ben@bsima.me> | 2020-04-03 15:45:29 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-03 15:45:29 -0700 |
commit | 2b17d6fc7d5a6cc8220a60b41d13e14e4f007d3d (patch) | |
tree | e4377036e2cc18e4e9d11c2cd32196334833883d | |
parent | f8b7d6c4eb9915515f3fecc2843eaab7e48df94d (diff) |
Get ghc with hoogle working (yay!)
-rw-r--r-- | .ghci | 2 | ||||
-rw-r--r-- | biz.nix | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -4,3 +4,5 @@ :set -Wall -- ':iq Module M' -> 'import qualified Module as M' :def iq (\arg -> let [x, y] = Prelude.words arg in return $ "import qualified " ++ x ++ " as " ++ y) +:def hoogle \s -> return $ ":! hoogle search --count=15 \"" ++ s ++ "\"" +:def hdoc \s -> return $ ":! hoogle search --info \"" ++ s ++ "\"" @@ -57,7 +57,7 @@ in { deps = lists.flatten (seq (map (builtins.match "^-- : dep ([[:alnum:]._-]*)$") (lines content))); - ghc = ghc865_.ghcWithPackages (hp: depsToPackageSet hp deps); + ghc = ghc865_.ghcWithHoogle (hp: depsToPackageSet hp deps); in stdenv.mkDerivation { name = module; version = "0"; |