GHCi-7.8.4不会从transformers
库加载任何内容,因为它找不到GHCi文件。有什么问题?
Prelude> import Data.Functor.Reverse
<no location info>:
Could not find module ‘Data.Functor.Reverse’
Perhaps you haven't installed the "dyn" libraries for package ‘transformers-0.4.3.0’?
Use -v to see a list of the files searched for.
Locations searched:
/home/jdm/.cabal/lib/transformers-0.4.3.0/ghc-7.8.4/Data/Functor/Reverse.dyn_hi
答案 0 :(得分:1)
https://mail.haskell.org/pipermail/haskell-cafe/2009-December/071442.html
使用
--enable-shared
选项进行cabal安装。如果你想要动态 各地的图书馆都将
shared: True
放入~/.cabal/config
。你需要 重新编译所有库。