summaryrefslogtreecommitdiff
path: root/.ghci
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-04-21 17:10:54 -0700
committerBen Sima <ben@bsima.me>2020-04-21 17:10:54 -0700
commit9947e692549f2faa0139f701006c2921012ac981 (patch)
tree839ed2a0dd0f6fe079231d877b233553098a634d /.ghci
parentea86ac82021efda2e324b7790780ec87ce303ffa (diff)
Auto-haddock in ghci
Diffstat (limited to '.ghci')
-rw-r--r--.ghci1
1 files changed, 1 insertions, 0 deletions
diff --git a/.ghci b/.ghci
index 787d6be..18c5aa9 100644
--- a/.ghci
+++ b/.ghci
@@ -2,6 +2,7 @@
:set prompt "λ "
:set prompt-cont "| "
:set -Wall
+:set -haddock
-- ':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 ++ "\""