On Sat, Mar 3, 2012 at 08:39, Graham Berks <graham@fatlazycat.com> wrote:
Hi, trying out haskell.

Have osx 10.7 and ghc 7.0.4 via homebrew

When attempting to compile a program via cabal i get

ghc: could not execute: opt

Xcode 4 includes only part of LLVM; ghc has apparently found that part and is trying to use it, but "opt" is one of the pieces that isn't there.  You'll need to install a full LLVM or find out how to get ghc to not use -fllvm by default (I *think* that's what's going on?).

--
brandon s allbery                                      allbery.b@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms