Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack exec complains about missing GHC #21470

Closed
deepfire opened this issue Dec 28, 2016 · 3 comments
Closed

stack exec complains about missing GHC #21470

deepfire opened this issue Dec 28, 2016 · 3 comments

Comments

@deepfire
Copy link
Contributor

deepfire commented Dec 28, 2016

Issue description

stack exec complains about missing GHC.

Steps to reproduce

deepfire@andromedae:~$ nix-env --query --installed | grep 'ghc\|stack'
ghc-8.0.1
stack-1.3.0
deepfire@andromedae:~$ stack exec ghc
No compiler found, expected minor version match with ghc-8.0.1 (x86_64) (based on resolver setting in /home/deepfire/.stack/global-project/stack.yaml).
To install the correct GHC into /home/deepfire/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag. To use your system GHC installation, run "stack config set system-ghc --global true", or use the "--system-ghc" flag.

Technical details

  • System: 17.03.git.de99dc5 (Gorilla)
  • Nix version: nix-env (Nix) 1.11.4
  • Nixpkgs version: "17.03.git.de99dc5049"
@deepfire deepfire changed the title Stack exec seem broken stack exec complains about missing GHC Dec 28, 2016
@domenkozar
Copy link
Member

stack --nix exec ghc

@deepfire
Copy link
Contributor Author

@domenkozar, then we need to somehow accomodate this for intero to work properly

@deepfire
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants