Re: Problems compiling with profiling enabled

Yann Morvan <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
I was trying to compile GLUT and HOpenGL with profiling on (I added 
"GhcLibWays    = p" in buid.mk).
When it goes back to building the profiling versions, it fails with:

Graphics/UI/GLUT/Callbacks/Registration.hs:64:
    Couldn't match `Maybe Window' against `Window'
    Expected type: Maybe Window
    Inferred type: Window
    In the third argument of `maybe', namely `win'
    In the result of a 'do' expression:
    maybe (error (func ++ ": no current window")) return win

Even though things worked fine for the non profiling build.
I don't understand why it would behave differently.
I am using version 6.3 of the fptools disribution, because it is at that 
time that I had to play around to get fragment programs working. Was 
there known issues with profiling HOpenGL at that time ? Has a lot 
happened since ?
Do I need to do more than set GhcLibWays ?

Thank you for your help,

    Yann Morvan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.