yamafaktory / reflex-starter

A simple starter project for building Reflex applications with Stack.
BSD 3-Clause "New" or "Revised" License
36 stars 3 forks source link

stack build fails during happy build #2

Closed paf31 closed 8 years ago

paf31 commented 8 years ago

I followed the instructions in the readme, and stack setup worked fine. However, stack build failed during the Happy build, with

setup: The program 'ghc' is required but it could not be found

I'm using Stack v1.0.4.3 on MacOS, without a global GHC install.

yamafaktory commented 8 years ago

Hi,

Could you try stack --no-system-ghc build (and eventually try again afterward with stack build)?

Another option could be stack --resolver ghc-7.10 setup --reinstall.

paf31 commented 8 years ago

These didn't work, but some temporary modifications to my PATH did the trick.

For the benefit of future readers, this was the command I required:

PATH=$PATH:~/.stack/programs/x86_64-osx/ghc-7.10.3/bin/:~/.stack/snapshots/x86_64-osx/lts-5.4/7.10.3/bin stack build

Thanks!