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


<fixed>type GLVertex = (GLfloat, GLfloat, GLfloat)

</fixed>

<fixed>toVertex :: GLVertex -> Vertex3 a <<<<<<<<<<<<<<<< how do it
correctly

toVertex (x,y,z) = Vertex3 x y z


</fixed>The compiler says "cannot infer a with type GLFloat" or
something like this.... I don't understand.


Thank you for help



Hans<fixed>




</fixed>