From 2b17d6fc7d5a6cc8220a60b41d13e14e4f007d3d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 3 Apr 2020 15:45:29 -0700 Subject: Get ghc with hoogle working (yay!) --- .ghci | 2 ++ 1 file changed, 2 insertions(+) (limited to '.ghci') 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 ++ "\"" -- cgit v1.2.3