On 2008 Aug 12, at 5:11, Conor McBride wrote:
$ ghc -package GLUT HelloWorld.lhs -o HelloWorld Illegal instruction
I'm using ghc 6.8.3 on a Mac PowerBook G4. Googling "OpenGL illegal instruction" produced an unending choice of horror stories.
What message am I not getting? Is there some crucial manual I'm not reading? Is there something which we should be being told on the relevant wiki page?
You need to find (or build) a G4-compatible ghc; the 6.8.3 build for Leopard (and Tiger?) was built for a G5, and the above is the result. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH