Files
dotfiles/ghci
2014-07-28 10:13:02 +02:00

8 lines
277 B
Plaintext

:set prompt "ghci> "
:set -Wall
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