summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.ghci2
-rw-r--r--biz.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/.ghci b/.ghci
index 2629ab7..787d6be 100644
--- a/.ghci
+++ b/.ghci
@@ -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 ++ "\""
diff --git a/biz.nix b/biz.nix
index 777c00a..f28e223 100644
--- a/biz.nix
+++ b/biz.nix
@@ -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";