Joined June 2016
·
Posted to
Colored GHCi prompt with λ and modules on separate lines
over 1 year
ago
I wrote little wrapper
You can use it like this
:def color (_ -> return (":set -interactive-print=FunnyPrint.funnyPrint\n:set prompt " ++ FunnyPrint.prompt "λ " "%s" " > " ++ "\n:set prompt2 " ++ FunnyPrint.prompt2 "λ " "" "| "))
:def nocolor (_ -> return ":set -interactive-print=print\n:set prompt \"%s> \"\n:set prompt2 \"%s| \"")
:color
But with newline it don't work. Would be grateful if you may suggest, why.
Posted to
Colored GHCi prompt with λ and modules on separate lines
over 1 year
ago
Thank you!
Update: cozy multiline version:
Put next to your
~/.ghc/ghci.conf