I'm trying to use this module in my haskell code: http://hackage.haskell.org/package/MissingH-1.0.0/docs/Data-String-Utils.html to use the function "replace" - However, when I try this code:
import Data.String.Utils
Run Code Online (Sandbox Code Playgroud)
Haskell tells me there is no such module.
What should I do?
Chr*_*nus 13
您没有安装模块,这就是问题所在.:) MissingH不随标准Haskell安装一起分发 - 它是一个可以安装的模块,但你必须先下载它.cabal,Haskell包安装程序(它是Haskell easy_install对python或cpan对Perl来说)将为您做到这一点.
按照Windows的Cabal页面上的说明进行操作.一旦cabal.exe安装,做
cabal.exe update
cabal.exe install MissingH
Run Code Online (Sandbox Code Playgroud)
(Data.String.Utils在MissingH模块中.)