
During my HOpenGL crusade against nhc98, I came across heavy resistance: :-] /usr/src/packages/BUILD/nhc98-1.17/script/nhc98 -c -cpp -I/usr/src/packages/BUILD/nhc98-1.17/include/packages/OpenGL -package base -Iinclude -DCALLCONV=ccall -o /usr/src/packages/BUILD/nhc98-1.17/targets/ix86-Linux/obj/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Matrix.o Graphics/Rendering/OpenGL/GLU/Matrix.hs Fail: Can't find int for (NHC.Internal._mkIOok14,Identifier) make: *** [/usr/src/packages/BUILD/nhc98-1.17/targets/ix86-Linux/obj/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Matrix.o] Fehler 1 What is nhc98 trying to tell me here? %-) Cheers, S.

Sven Panne
During my HOpenGL crusade against nhc98, I came across heavy resistance: :-]
/usr/src/packages/BUILD/nhc98-1.17/script/nhc98 -c -cpp -I/usr/src/packages/BUILD/nhc98-1.17/include/packages/OpenGL -package base -Iinclude -DCALLCONV=ccall -o /usr/src/packages/BUILD/nhc98-1.17/targets/ix86-Linux/obj/libraries/OpenGL/Graphics/Rendering/OpenGL/GLU/Matrix.o Graphics/Rendering/OpenGL/GLU/Matrix.hs Fail: Can't find int for (NHC.Internal._mkIOok14,Identifier)
What is nhc98 trying to tell me here? %-)
The file in question defines a foreign imported IO action of arity 14, but nhc98 can only cope up to arity 12 at present. I would guess it is 'gluUnProject4'. Have a look in src/prelude/Internal/Internal.hs where _mkIOok[0..12] are defined. Just for you, I have now checked in functions up to arity 15. (Don't forget to 'make prelude' again, or you will get link errors.) Regards, Malcolm

Malcolm Wallace wrote:
The file in question defines a foreign imported IO action of arity 14, but nhc98 can only cope up to arity 12 at present.
I just figured that out...
I would guess it is 'gluUnProject4'.
Yep.
Have a look in src/prelude/Internal/Internal.hs where _mkIOok[0..12] are defined. Just for you, I have now checked in functions up to arity 15. [...]
Thanks for the quick fixes, it's nice to see that one is not all alone in front of a silly computer on a Sunday afternoon... ;-) Cheers, S.
participants (2)
-
Malcolm Wallace
-
Sven Panne