12

I'm trying to start Tools -> Start Haskell REPL, but I'm getting this error:

Error: Cannot run program "/usr/lib/ghc-7.8.4/bin/ghci" (in directory ...): error=2, No such file or directory

Which looks legitimate, as ghci resides elsewhere:

$ locate ghci
/usr/bin/ghci
/usr/bin/ghci-7.8.4
/usr/lib/ghc-7.8.4/ghci-usage.txt
...

(Haskell installed from the dedicated repository, Archlinux). Unfortunately, I've been given no leeway concerning Haskell SDK location.

Project Structure -> Project SDK -> GHC -> Select Home Directory for GHC

forces /usr/lib/ghc-7.8.4 choice on me.

1

1 Answer 1

-1

install Haskell stack.

in case you run on Ubuntu do:

curl -sSL https://get.haskellstack.org/ | sh

On my System Stack has been installed to: /usr/local/bin/stack

2
  • mv /usr/lib/ghc/bin/ghc /usr/lib/ghc/bin/ghc_old Jan 25, 2017 at 21:27
  • ln -s /opt/ghc/7.10.3/bin/ghc /usr/lib/ghc/bin/ghc Jan 25, 2017 at 21:28

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.