How to write this correct...
Hans Nikolaus Beck
HNBeck at t-online.de
Sun Feb 22 11:03:28 EST 2004
Hi,
I have the following problem:
Vertex3 ist defined as
data Vertex3 a = Vertex3 a a a
a is defined as
class a VertexComponent
But I fail to write to following correct
type GLVertex = (GLfloat, GLfloat, GLfloat)
toVertex :: GLVertex -> Vertex3 a <<<<<<<< how do it correctly
toVertex (x,y,z) = Vertex3 x y z
The compiler says "cannot infer a with type GLFloat" or something like
this.... I don't understand.
Thank you for help
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 518 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20040222/bde37b41/attachment.bin
More information about the Glasgow-haskell-users
mailing list