[英]ghci configuration - haskell - Error while changing ~/.ghci file
I was trying to pu my GHCi pretty using this: http://www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/ 我试图使用这个来充分利用我的GHCi: http : //www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/
But while runnig GHCi this error appear and I cannot apply the colour changes. 但是,当runnig GHCi出现此错误时,我无法应用颜色更改。
user@pcname:~$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
<no location info>:
Could not find module `IPPrint'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour.Colourise'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour.Output'
It is not a module in the current program, or in any known package.
<interactive>:7:21:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
<interactive>:9:26:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
Top level: Not in scope: `myPrint'
Top level: Not in scope: `myPrint'
<interactive>:19:26:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
What do you suggest? 你有什么建议?
I'm currently using Ubuntu 14.04 and GHCi 7.6.3 我目前正在使用Ubuntu 14.04和GHCi 7.6.3
Summarising the comments: you need to install the Haskell modules hscolour
and ipprint
. 总结评论:您需要安装Haskell模块hscolour
和ipprint
。 For the second, you need to have the libbz2-dev
package installed. 对于第二个,您需要安装libbz2-dev
软件包。 So: 所以:
sudo apt-get install libbz2-dev
cabal update
cabal install ipprint hscolour
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.