Simon Peyton-Jones wrote:
> [...]  If you compile with -fno-generics then the only bad thing is
> that you won't be able to do the 'derivable type classes' thing:
>
>   http://haskell.cs.yale.edu/ghc/docs/latest/html/users_guide/generic-classes.html
>
> Everything else will be fine.

This would mean that 'derivable type classes' can't be used for
HOpenGL's data types. In other word, the user would get something like

   MyGenerics.hs:41:
       Can't derive generic code for `blah'
       because the instance type constructor `PolygonMode' was not compiled with 
-fgenerics
       In the instance declaration for `Blah PolygonMode'

where PolygonMode is an algebraic datatype from HOpenGL. Hmmm, this is
not acceptable for a library IMHO. OTOH, with -split-objs the additional
functions for generics probably won't end up in the final executable if
generics are not used, correct? In this case, it's only lib*.a and HS*.o
which are getting bigger, which not a serious problem.

Cheers,
   S.
_______________________________________________
Cvs-libraries mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to