haskell-opengl/OpenGLRaw — pull request #11 by mikeplus64 (2012-09-11 08:27:36+00:00)
Title: Remove GLchar

Having a newtype for GLchar is very inconvenient as - despite Ptr GLchar being identical to a CString - I can't use functions for CStrings without a call to castPtr. This is different in my opinion to other types like GLint where there are already nice polymorphic functions from typeclasses in Prelude that make dealing with them nice.

If GLchar really needs to exist as a newtype, maybe the functions taking a Ptr GLchar, e.g. glShaderSource, could instead take a CString?