Haskell ghci lambda symbol in tooltip

In Haskell ghci it is possible (and how) to get a lambda character in a tooltip, for example, how

λ> 

Using Linux Ubuntu.

+6
source share
2 answers

The command you are looking for is :set prompt . Follow it with what you want it to be. You can put this in .ghci , I suppose.

 :set prompt "λ> " :set prompt2 "λ| " 
+9
source

You can use the following command to use the lambda character:

 :set prompt "\x03BB: " 
+8
source

Source: https://habr.com/ru/post/984895/


All Articles