Skip to content

Instantly share code, notes, and snippets.

@sshine
Created September 10, 2015 13:34
Show Gist options
  • Save sshine/8a145cdbae28832b6730 to your computer and use it in GitHub Desktop.
Save sshine/8a145cdbae28832b6730 to your computer and use it in GitHub Desktop.
let ghciEscape arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'"
:def! hoogle return . (":! hoogle --color --count=20 " ++) . ghciEscape
:def! doc return . (":! hoogle --color --info " ++) . ghciEscape
:set prompt "\ESC[1;34m%s\n\ESC[0;34mλ> \ESC[m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment