A binding for the OpenGL graphics system

Version on this page:
LTS Haskell 22.30:
Stackage Nightly 2024-07-23:
Latest on Hackage:

See all snapshots OpenGL appears in

BSD-3-Clause licensed by Sven Panne
Maintained by Sven Panne, Jason Dagit
This version can be pinned in stack with:OpenGL-,7985

Module documentation for

Hackage Stackage LTS Stackage nightly Build Status


  • Handle MonadFail proposal.

  • Relaxed upper version bound for containers.

  • Relaxed upper version bound for OpenGLRaw.

  • Added support for S3_s3tc, EXT_texture_compression_s3tc, ARB_texture_float, and EXT_packed_depth_stencil extensions.

  • Added Uniform instances for GLmatrix, Vertex1, Vector1, Vector2, Vector3, and Vector4.
  • Unbreak Uniform instances for GLint, GLuint and Gldouble.
  • Relaxed upper version bound for OpenGLRaw.

  • Removed redundant constraints.

  • Relaxed upper version bound for OpenGLRaw.

  • Depend on new OpenGLRaw and GLURaw packages.

  • Relaxed upper version bound for transformers.

  • Implement Uniform instances for GLint, GLuint, GLfloat, and GLdouble.

  • Aftermath for the glClearNamedFramebufferfi chaos in the OpenGL registry, see the corresponding issue on Khronos.

  • Added extensionSupported.
  • Relaxed upper version bound for OpenGLRaw.
  • Added to distribution.

  • Added missing drawing commands using vertex arrays and some related types.
  • Added missing whole framebuffer operations.
  • Added getters for stencilMaskSeparate, stencilFuncSeparate, and stencilOpSeparate, making them full-blown StateVars.
  • Added patchDefaultInnerLevel and patchDefaultOuterLevel to control the default tessellation levels.
  • Added ContextLost constructor to ErrorCategory type.
  • Added SeparateAttribs and deprecated SeperateAttribs, fixing a spelling mistake.