Added ghci

This commit is contained in:
Veit Heller
2014-06-12 13:25:06 +02:00
parent cb0ca0ceb2
commit 26e1a028dc
3 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
.dotfiles
=========
The dotfiles I use
The dotfiles I use. Includes configuration files for vim, bash, ghci and git.

View File

@@ -1,4 +1,4 @@
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io:~/.cabal/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
alias gcc="gcc-mp-4.9"

5
ghci Normal file
View File

@@ -0,0 +1,5 @@
: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