[Haskell-cafe] What's wrong with these foreign calls?

Андрей Янкин yankin013 at gmail.com
Wed Jul 11 21:17:44 CEST 2012

Hi all!

I want to use GLFW-b (
and I wrote this:
  initWindow = do
    True <- GLFW.initialize
    print =<< GLFW.openGLProfile
    print =<< GLFW.getGlfwVersion
    print =<< *GLFW.getGlVersion*
    print "Trying to open the window"
    result <- GLFW.openWindow GLFW.defaultDisplayOptions
    print result

And got this:
  Version {versionBranch = [2,7,2], versionTags = []}
  Version {versionBranch = [*-1867951663,39789305,39789305*], versionTags =
  "Trying to open the window"

Why do I always get random numbers as GLVersion?
How can I detect incompatibility preventing me from opening a window?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120711/25bd37e4/attachment.htm>

More information about the Haskell-Cafe mailing list