Files
dotfiles/ghci
2015-04-05 17:41:14 +02:00

11 lines
360 B
Plaintext

:set prompt "λ > "
:set prompt2 "λ² > "
{- :set -Wall -}
:set +m
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
:def! hlint const . return $":! hlint \"src\""