如果在 mac 中使用 brew cask 安装 GHC,ghci.conf 在哪里?

Where is ghci.conf if installing GHC using brew cask in mac?

我使用 homebrew-cask 在我的 mac (OS X 10.11.2) 中安装 haskell-platform by 运行:

brew cask install haskell-platform

它一直运行良好,直到我想在 GHCi 中启用语法高亮显示。我在 this post 中发现我应该在 ghci.conf 中添加一行。但是我找不到这个文件在哪里。

您必须在您的用户目录中创建一个新文件;最终路径应为 ~/.ghci/Users/<username>/.ghci。默认情况下该文件不存在。有关完整详细信息,请参阅 the documentation