user1897830
user1897830

Reputation: 443

Unable to build a Haskell program using cabal

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?

Upvotes: 0

Views: 496

Answers (1)

sclv
sclv

Reputation: 38891

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

Upvotes: 0

Related Questions