[英]Cannot import HUnit into ghci
我剛剛安裝了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
,或者在GHCi中鍵入:set -v
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.