Search code examples
haskellterminalpromptghci

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.


Solution

  • 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 "λ| "