3
我想在我的Haskell代碼中導入Data.String.Utils模塊,這是MissingH軟件包的一部分。我安裝了cabal並用它來獲取MissingH,它已正確安裝。然而,wehn我嘗試添加Haskell導入MissingH
import Data.String.Utils
我的代碼,WinHugs返回
ERROR file:.\ex.hs - Can't find imported module "Data.String.Utils"
任何反饋?
[Haskell導入模塊]可能的重複(http://stackoverflow.com/questions/19601789/haskell-import-module) –
就像你上次問這個問題一樣,你需要安裝MissingH包才能訪問到該軟件包中的模塊。就像上次一樣,解決方法是1)安裝cabal-install 2)'cabal update' 3)'cabal install missingh'。 –
嗨,我這樣做,cabal說所有必需的軟件包已安裝,但然後WinHugs仍然返回相同的錯誤。對於雙重問題抱歉,我認爲,因爲我已經安裝了Cabal,另一個問題有點「過期」 – MrD