GHCi 配置文件

GHCi 使用~/.ghci 中的配置文件。配置文件由 GHCi 在启动时执行的一系列命令组成。

$ echo ":set prompt \"foo> \"" > ~/.ghci
$ ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from ~/.ghci
foo>