stack build --stack-yaml stack-8.4.3.yamlYou may need to edit .ghci first:
- add :set prompt ">"to prevent ghci from prefixing all those loaded modules
- replace BUILD_DIRlikedist-2.6.0with Stack directory like.stack-work/dist/x86_64-osx/Cabal-2.2.0.1
stack repl --stack-yaml stack-8.4.3.yaml