我试图使用这个来充分利用我的GHCi:http://www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/
但是当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.
你有什么建议?
我目前正在使用Ubuntu 14.04和GHCi 7.6.3
答案 0 :(得分:2)
总结评论:您需要安装Haskell模块id
和hscolour
。对于第二个,您需要安装ipprint
包。所以:
libbz2-dev