Files
dotfiles/ghci
2015-03-10 09:18:30 +01:00

8 lines
282 B
Plaintext

:set prompt "λ > "
{- :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