
The precompiled WinHugs Sep 2006 does not seem to come with the GLUT package. Although I'm able to add packages to GHC (using Cabal), I failed doing the same for WinHugs. How can I add the GLUT package to WinHugs? I tried starting MSYS, typed configure, which worked fine, but then "make" fails. Also typing runhugs Setup.hs configure fails with runhugs: Error occurred ERROR "c:\program files\winhugs\packages\base\Text\ParserCombinators\ReadP.hs":156 - Syntax error in type expression (unexpected `.') Thanks for any help, Peter Verswyvelen

Hi Peter,
Also typing runhugs Setup.hs configure fails with
runhugs: Error occurred ERROR "c:\program files\winhugs\packages\base\Text\ParserCombinators\ReadP.hs":156 - Syntax error in type expression (unexpected `.')
This is because Cabal gets it wrong. You need to type runhugs -98 Setup configure. There is an easy fix, which is for the Cabal developers to always use the bundled ReadP rather than the library one. I talked to Duncan about this in Germany, and he said he'd fix it :-) Thanks Neil

Okay, I got one step further now, great! But when doing "runhugs -98 Setup.hs build" it complains about not having CPPHS, and the Windows binary link is broken :( *404: Not Found* *The file you have requested (http://www.cs.york.ac.uk/fp/cpphs-1.5-win32.zip) could not be found on this server.* I could try to build CPPHS from source, but I guess this should not happen? Thanks, Peter

Hi
The file you have requested (http://www.cs.york.ac.uk/fp/cpphs-1.5-win32.zip) could not be found on this server.
The slightly older version works: http://www.cs.york.ac.uk/fp/cpphs-1.2-win32.zip I'm unable to get SSH from this machine, so can't tell where that file has gone to. Malcolm should be able to check if the file is present, and if not I'll create a new one shortly. If you have GHC installed, building cpphs is not that hard. Thanks Neil

Thanks Neil, That got me one step further. runhugs -98 Setup.hs configure works fine, but runhugs -98 Setup.hs build gives the error Preprocessing library GLUT-2.0.20060921... Building GLUT-2.0.20060921... 'c:\program' is not recognized as an internal or external command, operable program or batch file. It seems some command line tool can't handle spaces in directory names? Thanks, Peter Neil Mitchell wrote:
Hi
The file you have requested (http://www.cs.york.ac.uk/fp/cpphs-1.5-win32.zip) could not be found on this server.
The slightly older version works: http://www.cs.york.ac.uk/fp/cpphs-1.2-win32.zip
I'm unable to get SSH from this machine, so can't tell where that file has gone to. Malcolm should be able to check if the file is present, and if not I'll create a new one shortly. If you have GHC installed, building cpphs is not that hard.
Thanks
Neil
participants (2)
-
Neil Mitchell
-
Peter Verswyvelen