Skip to content

Commit

Permalink
ghci
Browse files Browse the repository at this point in the history
  • Loading branch information
chemist committed Jun 6, 2013
1 parent 5d3b6b0 commit afc54c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .ghci
@@ -0,0 +1,12 @@
:set prompt " >>> "
:set +t
--:set -XOverloadedStrings
--import qualified Data.ByteString as S
--import qualified Data.ByteString.Lazy as L
--import qualified Data.Binary as B

--import System.IO.Russian.Console

let ghciEscapeShellArg arg = "'" ++ concatMap (\x -> if x == '\'' then "'\"'\"'" else [x]) arg ++ "'"
:def! search return . (":! hoogle --color --count=20 " ++) . ghciEscapeShellArg
:def! doc return . (":! hoogle --info " ++) . ghciEscapeShellArg

0 comments on commit afc54c0

Please sign in to comment.