Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GLchar #11

Merged
merged 2 commits into from Sep 13, 2012
Merged

Remove GLchar #11

merged 2 commits into from Sep 13, 2012

Conversation

mikeplus64
Copy link
Contributor

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.

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

dagit added a commit that referenced this pull request Sep 13, 2012
@dagit dagit merged commit 89002d1 into haskell-opengl:master Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants