[Haskell-cafe] OS X ghci problem

Brian Lewis brian at lorf.org
Fri Jul 12 06:31:10 CEST 2013


Here's a problem variations of which have been plaguing the Haskell
community for as long as I can remember.

To see it for yourself:
1.) Be running OS X
2.) install GLFW-b-1.0.0 (you may need to cabal update) [1]
3.) ghci -package GLFW-b
4.) import Graphics.UI.GLFW as GLFW
5.) GLFW.init

Security camera footage of the crime in progress:
https://gist.github.com/dagit/5980438/raw/2e92a63135008921040478566e56ac7c0556d116/gistfile1.txt

One of the first things GLFW.init does on OS X is
... = [[NSAutoreleasePool alloc] init];

That causes
-[NSAutoreleasePool init]: unrecognized selector sent to instance ...

which seems to mean that NSAutoreleasePool doesn't understand the "init"
message/method. But [[NSAutoreleasePool alloc] init] is really basic
stuff.

What is going on?

[1]: http://hackage.haskell.org/package/GLFW-b



More information about the Haskell-Cafe mailing list