我正在使用 runhaskell
构建一个简单的脚本,尝试使用来自 ghc-7.10.2
的 FastString
。简单来说:
import FastString
main = putStrLn "Hello SO"
使用runhaskell Main.hs
运行它会导致错误:
Main.hs:1:8:
Could not find module ‘FastString’
It is a member of the hidden package ‘ghc-7.10.2’.
Use -v to see a list of the files searched for.
我知道我可以使用
cabal
并指定 ghc
作为依赖项来构建它,但我真的需要使用 runhaskell
来完成它。如何使用
runhaskell
取消隐藏ghc
库?