summaryrefslogtreecommitdiff
path: root/.ghci
blob: 3f7039a4f3de117218e74fee52c8eb730a2ceb7f (plain)
1
2
3
4
5
6
7
8
9
10
:set -XOverloadedStrings
: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 ++ "\""
:def hdoc \s -> return $ ":! hoogle search --info \"" ++ s ++ "\""
:def f \_ -> return $ ":! ftags"