summaryrefslogtreecommitdiff
path: root/.ghci
blob: 787d6bee844a5de311d57e0eb3b13728cb5390c8 (plain)
1
2
3
4
5
6
7
8
:set -XOverloadedStrings
:set prompt "λ "
:set prompt-cont "| "
: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 ++ "\""