gpt4 book ai didi

haskell - ghci 配置 - haskell - 更改 ~/.ghci 文件时出错

转载 作者:太空宇宙 更新时间:2023-11-03 16:57:12 25 4
gpt4 key购买 nike

我试图用这个来完善我的 GHCi:http://www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/

但是在运行 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

最佳答案

总结评论:您需要安装 Haskell 模块 hscolouripprint。对于第二种,您需要安装 libbz2-dev 包。所以:

sudo apt-get install libbz2-dev
cabal update
cabal install ipprint hscolour

关于haskell - ghci 配置 - haskell - 更改 ~/.ghci 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24700616/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com