I'm building simple script with runhaskell
and I try to use FastString
from ghc-7.10.2
. Simply:
import FastString
main = putStrLn "Hello SO"
running it with runhaskell Main.hs
results in error:
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.
I know that I can build it with cabal
and specify ghc
as dependency, but I really need to do it with runhaskell
.
How can I unhide ghc library using runhaskell
?