I'm trying to use Haskell Stack to setup a project but using the stack provided ghc I am having a -fPIC error GitHub issue
To bypass the fPIC problem I'm trying to use a package manager provided GHC using the 7.10.3 version (stack currently is using 8.0.2)
When I try to force stack to use the systm ghc it simply ignores me. I've tried to override using /home/user/.stack/config.yaml and {project}/stack.yaml system-ghc : true option... but stack use the 8.0.2 version in the setup.
Am I missing something?
TL;DR
Stack ignore the system-ghc : true option
I'm runnig Sabayon 16
"haskell-primer" is the project name
stack list-dependencies
base 4.9.1.0
ghc-prim 0.5.0.0
haskell-primer 0.1.0.0
integer-gmp 1.0.0.1
rts 1.0
lts
in thestack.yaml
file and stack will use whatever version of GHC you require. This is the correct way of picking a specific version of GHC for a specific project. – user2407038