我刚刚安装了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'如何导入?
发布于 2011-10-19 14:07:53
正确的模块是Test.HUnit。导入它,它应该可以工作。
要使用-v选项,请在命令行中指定该选项,例如ghci -v,或者在GHCi中键入:set -v。
https://stackoverflow.com/questions/7817116
复制相似问题