The OpenGLRaw package

[ Tags: bsd3, graphics, library ] [ Propose Tags ]

OpenGLRaw is a raw Haskell binding for the OpenGL 4.5 graphics system and lots of OpenGL extensions. It is basically a 1:1 mapping of OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw offers access to all necessary functions, tokens and types plus a general facility for loading extension entries. The module hierarchy closely mirrors the naming structure of the OpenGL extensions, making it easy to find the right module to import. All API entries are loaded dynamically, so no special C header files are needed for building this package. If an API entry is not found at runtime, a userError is thrown.

OpenGL is the industry's most widely used and supported 2D and 3D graphics application programming interface (API), incorporating a broad set of rendering, texture mapping, special effects, and other powerful visualization functions. For more information about OpenGL and its various extensions, please see and

[Skip to Readme]


Change log
Dependencies base (==4.*), bytestring (>=0.9 && <0.11), containers (>=0.3 && <0.6), fixed (==0.2.*), half (>= && <0.3), text (>=0.1 && <1.3), transformers (>=0.2 && <0.6) [details]
License BSD3
Copyright Copyright (C) 2009-2016 Sven Panne
Author Sven Panne
Maintainer Sven Panne <>, Jason Dagit <>
Category Graphics
Home page
Bug tracker
Source repo head: git clone
Uploaded Sun Jul 17 18:48:20 UTC 2016 by SvenPanne
Distributions Debian:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 37911 total (293 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-07-17 [all 1 reports]
Hackage Matrix CI





When compiling under Windows, use the native libraries instead of e.g. the ones coming with Cygwin.


Use glXGetProcAddress instead of dlsym on non-Windows-Darwin-Android platforms.


Use OpenGL ES 2.x instead of OpenGL ES 3.x on Android.


Compile for Android. This flag goes away when cabal supports os(android).


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for OpenGLRaw-

[back to package description]

Hackage Build Status