In Haskell ghci is it possible (and how) to get a lambda symbol in the prompt, for instance like this
λ>
Using Linux Ubuntu terminal.
GHCi also makes it easy to automatically detect such “flow-over” lines by setting turning this mode on the prompt (or in the ghci config file) — just use this command: :set +m and ghci automatically enters the continuation mode when it detects that the statement / definition has not yet ended (it then uses the ...
If you have installed the Haskell Platform, open a terminal and type ghci (the name of the executable of the GHC interpreter) at the command prompt. Alternatively, if you are on Windows, you may choose WinGHCi in the Start menu. And you are presented with a prompt. The Haskell system now attentively awaits your input.
appdata /ghc/ghci. conf , where appdata depends on your system, but is usually something like C:/Documents and Settings/ user /Application Data. On Unix: $HOME/. ghc/ghci.
The command you're looking for is :set prompt
. Follow it by whatever you want the prompt to be. You can put this in .ghci
, I believe.
:set prompt "λ> "
:set prompt2 "λ| "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With