Added ghci

This commit is contained in:
Veit Heller
2014-06-12 13:25:06 +02:00
parent cb0ca0ceb2
commit 26e1a028dc
3 changed files with 7 additions and 2 deletions

5
ghci Normal file
View File

@@ -0,0 +1,5 @@
:set prompt "ghci> "
let ghciEscapeShellArg arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'"
:def! h return . (":! hoogle --color --count=20 " ++) . ghciEscapeShellArg
:def! doc return . (":! hoogle --info " ++) . ghciEscapeShellArg