今天只搞懂了一个东西:
为 haskell 安装package的方法:
cabal自动安装: cabal install packagename
手动安装: runghc setup.hs/setup.lhs configure
runghc Setup build
runghc Setup install
有时需要添加其他语言的库,应该怎么办呢?
要么用全部用手动安装,要么全部用cabal安装,并且将编译好的库文件的地址添加到命令的后面,--extra-lib-dir= path and --extra-include-dirs= path
卸载一个已经安装的包: ghc-pkg unregister packagename
路漫漫其修远兮!