Skip to content

Instantly share code, notes, and snippets.

@pyrtsa
Created September 17, 2014 14:20
Show Gist options
  • Save pyrtsa/438fe7d778a1ffcfa322 to your computer and use it in GitHub Desktop.
Save pyrtsa/438fe7d778a1ffcfa322 to your computer and use it in GitHub Desktop.
Some more-tested parts from my GHCi config
-- 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