Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell ghci lambda symbol in prompt

In Haskell ghci is it possible (and how) to get a lambda symbol in the prompt, for instance like this

λ> 

Using Linux Ubuntu terminal.

like image 643
elm Avatar asked Apr 09 '15 12:04

elm


People also ask

How do I change the prompt in ghci?

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 ...

How do I run Haskell with ghci?

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.

Where is ghci conf?

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.


1 Answers

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 "λ| "
like image 152
MathematicalOrchid Avatar answered Sep 28 '22 08:09

MathematicalOrchid