How to write this correct...

Hans Nikolaus Beck HNBeck at
Sun Feb 22 12:54:21 EST 2004


> The type signature is wrong. Try this..
>  toVertex :: GLVertex -> Vertex3 GLfloat
> or perhaps..
>  toVertex :: (a,a,a) -> Vertex3 a
> Regards

Yes this works (the first variant). Thanks ! But I must say that I have 
problems to understand the class mechanism in its full extend....



More information about the Glasgow-haskell-users mailing list