我刚刚安装了 HUnit,并想将其导入 ghci。
Prelude> import HUnit
<no location info>:
Could not find module `HUnit':
Use -v to see a list of the files searched for.
另外,我不确定如何使用
-v
帮我。Prelude> import -v HUnit
<interactive>:1:8: parse error on input `-'
Prelude> import -v
<interactive>:1:8: parse error on input `-'
Prelude> -v
<interactive>:1:2: Not in scope: `v'
我该如何导入它?
最佳答案
正确的模块是 Test.HUnit
.导入它,它应该可以工作。
使用 -v
选项,或者在命令行上指定它,例如ghci -v
, 或输入 :set -v
从 GHCi 内部。
关于haskell - 无法将 HUnit 导入 ghci,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7817116/