Created
September 17, 2014 14:20
-
-
Save pyrtsa/438fe7d778a1ffcfa322 to your computer and use it in GitHub Desktop.
Some more-tested parts from my GHCi config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Use a green "λ>" as prompt. (Continued lines begin with " |".) | |
:set prompt "\SOH\ESC[32;1m\STXλ>\SOH\ESC[0m\STX " | |
:set prompt2 "\SOH\ESC[32;1m\STX |\SOH\ESC[0m\STX " | |
-- Hoogle (cabal install hoogle && hoogle data) | |
:def hoogle \str -> return $ ":! hoogle search --color --count=10 " ++ show str | |
:def hoogle-all \str -> return $ ":! hoogle search --color " ++ show str | |
:def doc \str -> return $ ":! hoogle search --color --info " ++ show str | |
-- Pointfree (cabal install pointfree) | |
:def pointfree \str -> return $ ":! pointfree " ++ show str | |
:def pf \str -> return $ ":! pointfree " ++ show str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment