0
votes

I am trying to learn Haskell with Atom ide on windows 7. I can build a program with stack but not with cabal. I wouldn't care about this except that Atom uses cabal. When I enter the command 'cabal build' I get the following messages: "Package has never been configured. Configuring with default flags. If this fails please run configure manually." "cabal: The program 'ghc' version >=6.4 is required but it could not be found." I have ghc version 7.10.3 installed which is >=6.4. So I guess it can't find the ghc compiler. Could somebody please advise?

1
I would recommend setting up atom to use stack (should be possible: github.com/atom-haskell/ide-haskell/issues/82) - Random Dev
Is GHC in your system path? - crockeea
What happens if you just run ghc from the command line? - leftaroundabout
There is no GHC environment variable and I am unable to run ghc from the command line. - user1897830
I guess the question is - Where does stack install ghc? Once I know this I can add it to the path and all should be ok. - user1897830

1 Answers

0
votes

You can find out where stack installs ghc by running stack path --ghc-paths.