-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.ghci
24 lines (18 loc) · 767 Bytes
/
.ghci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Do the leet hacker thing and change the long default prompt to a λ.
--
-- Trying out loaded modules on their own line, might ditch it -- :show imports
:set prompt "\n\ESC[1;34m%s\n\ESC[0;34mλ> \ESC[m"
:set prompt-cont "\ESC[0;34m | \ESC[m"
-- Behave like a modern REPL with multi-line support, mmk?
:set +m
-- Reload a project .ghci file or source macros from somewhere else
:def source readFile
-- Hoogle convenience
-- See: https://wiki.haskell.org/Hoogle#GHCi_Integration
-- $ cabal install hoogle
-- $ hoogle data
-- Hoogle search showing all matches
:def hoogle \x -> return $ ":!hoogle --color --count=15 \"" ++ x ++ "\""
-- Haddock documentation for first match
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
-- vim:set filetype=haskell: