How to write this correct...

Hans Nikolaus Beck HNBeck at t-online.de
Sun Feb 22 12:54:21 EST 2004


Hi,

>
> 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....

Greetings


Hans



More information about the Glasgow-haskell-users mailing list