How to write this correct...

2004-02-22 Thread Hans Nikolaus Beck
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) =

Re: How to write this correct...

2004-02-22 Thread Hans Nikolaus Beck
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

Re: Talking with the compiler

2004-01-20 Thread Hans Nikolaus Beck
Hi, I agree. It would be nice to have also a Iterator interface for the AST, i.e. for jump to next/previous symbol of a special kind. Also information about the caller of a symbol would be nice (I don't know if that is already part of the compiler manager interface). I'm interested in code

Re: Talking with the compiler

2004-01-18 Thread Hans Nikolaus Beck
Hi, Am 18.01.2004 um 11:31 schrieb Ketil Malde: [EMAIL PROTECTED] (Hans Nikolaus Beck) writes: in order to build a programming environement, it would be nice to ask the GHC about symbols etc found in a given Haskell program. I suppose a programming environment could talk to GHCi (which provides

Talking with the compiler

2004-01-17 Thread Hans Nikolaus Beck
Hi, in order to build a programming environement, it would be nice to ask the GHC about symbols etc found in a given Haskell program. I've read that GHC has a interface, which was originally intended to plug in other backends. But I've never found a detailed description or API Can someone

Re: Talking with the compiler

2004-01-17 Thread Hans Nikolaus Beck
Hi, thank you, it's seems very helpful :-)) Greetings Hans Am 18.01.2004 um 00:31 schrieb Donald Bruce Stewart: HNBeck: Hi, in order to build a programming environement, it would be nice to ask the GHC about symbols etc found in a given Haskell program. I've read that GHC has a interface,

XCode and GHC on MacOs X

2004-01-10 Thread Hans Nikolaus Beck
Hi, Could the XCode Tool from Mac Os X Panther be forced to use ghc instead of gcc ? I've found no option to do so, help says nothing about switching a compiler... Greetings Hans ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Compiling HOpenGL Examples with GHC 6.2 Mac OS

2004-01-06 Thread Hans Nikolaus Beck
Hi, as far as I understand now, for my compiliing problem (see last past with same subject) I must do ghc -package OpenGL -package GLUT --make Cube.hs and in the code doing import OpenGL import GLUT Right so far ? But it seems that the package description in the GHC 6.2 distribution is not