Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 ghc 构建共享库时遇到问题,我认为我需要使用 --enable-shared 重建我的 haskell 包,有没有一种简单的方法可以使用带有标志 --enable-shared 的 cabal 重建我的所有包?
如果你有 ~/.cabal/world,cabal install --reinstall --enable-shared world可以工作,但--dry-run先用标志测试。但是,这只会处理 cabal 安装的软件包。如果您使用发行版的软件包管理器安装了软件包,则发行版还可能为这些软件包提供共享版本(否则,您必须手动进行)。shared: True此外,在 ~/.cabal/config 中进行设置可能会有所帮助。
cabal install --reinstall --enable-shared world
--dry-run
shared: True