opengl - Haskell Error: Not in scope: `GLFW.windowIsOpen' -


i can find in the documentation.

however, whenever compile, scope error.

here code:

import graphics.rendering.opengl gl import graphics.ui.glfw glfw import graphics.rendering.opengl (($=)) import system.environment (getargs, getprogname)  import control.monad  main =   glfw.initialize   glfw.openwindow (gl.size 400 400) [glfw.displayalphabits 8] glfw.window   glfw.windowtitle $= "opengl test"    render <- initialize'   loop render    glfw.closewindow   glfw.terminate   loop render =   render   p <- glfw.getkey glfw.esc   unless (p == glfw.press) $     isopen <- glfw.windowisopen     when isopen $ loop render  initialize' =   return $     gl.clear [gl.colorbuffer] 

it seems documentation refer pretty old. there new documentation latest version.

windowisopen not exist longer, seems have been replaced getparam opened.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -