Files
dotfiles/ghci
Veit Heller 26e1a028dc Added ghci
2014-06-12 13:25:06 +02:00

6 lines
265 B
Plaintext

: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