GHC无法找到动态库 - 无法找到模块'Data.Functor.Reverse'

时间:2015-03-16 14:33:23

标签: haskell ghc ghci

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

1 个答案:

答案 0 :(得分:1)

https://mail.haskell.org/pipermail/haskell-cafe/2009-December/071442.html

  

使用--enable-shared选项进行cabal安装。

     

如果你想要动态   各地的图书馆都将shared: True放入~/.cabal/config。你需要   重新编译所有库。