[Haskell-cafe] Type hierarchy

Kim-Ee Yeoh ky3 at atamo.com
Wed Jan 16 17:35:50 CET 2013

On Wed, Jan 16, 2013 at 11:22 PM, Thiago Negri <evohunz at gmail.com> wrote:

> The C spec allows the use of GLboolean values where GLenums are expected.

Some fixes off the top of my head (caveats apply):

* define a lift :: GLboolean -> GLenum
* use a typeclass GLenumlike
* if there aren't too many of them, roll a GLboolean specific function for
every one taking GLenum

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130116/547a3514/attachment.htm>

More information about the Haskell-Cafe mailing list