[英]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 在Haskell中,ghci可以(以及如何)在提示符中获取lambda符号,例如像这样
λ>
Using Linux Ubuntu terminal. 使用Linux Ubuntu终端。
The command you're looking for is :set prompt
. 您正在寻找的命令是:set prompt
。 Follow it by whatever you want the prompt to be. 按照你想要的提示来跟随它。 You can put this in .ghci
, I believe. 我相信你可以把它放在.ghci
。
:set prompt "λ> "
:set prompt2 "λ| "
您可以使用以下命令来使用lambda字符:
:set prompt "\x03BB: "
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.