Support request for compiling hat

Hi people, As a user of haskell, and as a student in information science at the university of Utrecht, I have been very interested in using hat since a while. However, I cannot get to compile it... First, I tried download the latest releases of ghc, hmake and hat. However, hat refused to compile because it found the ghc version too low (although, in fact, it is probably to new). So, I tried to use the ghc version that the release notes of hat mentioned. However, hmake refuses to compile with this version installed :-(. So, I tried to install BOTH releases of ghc. With this setup, hmake refuses to compile as well... My new approach was to use the latest releases of ghc and hmake again, but try the CVS version of hat. The compiling actually started quite promising, but after a while I got <SNIP> Stop - hmake dependency error. cd src/hattools; make HC=ghc install make[1]: Entering directory `/home/robert/src/hat/src/hattools' hmake -hc=ghc -I. -I/home/robert/src/hat/include -fglasgow-exts -package lang -package util -DUSE_READLINE=1 SrcRefViewer \ -d/home/robert/src/hat/targets/ix86-Linux/obj/hattools Fail: Can't find module System in user directories . . /home/robert/src/hat/include Or in installed libraries/packages at /usr/local/lib/ghc-6.2.1/imports /home/robert/soft/lib/ghc-6.2.1/hslibs-imports/lang /home/robert/soft/lib/ghc-6.2.1/hslibs-imports/util Asked for by: SrcRefViewer.hs Fix using the -I, -P, or -package flags. </SNIP> Could you please help me in trying to compile the hat software? From what I read on the site it is very useful, but I just cannot seem to be able to compile it... Thanx, Robert van Herk

As a user of haskell, and as a student in information science at the university of Utrecht, I have been very interested in using hat since a while. However, I cannot get to compile it...
First, I tried download the latest releases of ghc, hmake and hat. However, hat refused to compile because it found the ghc version too low (although, in fact, it is probably to new). This is caused by a little bug in the configure script that simply removes the points from the version numbers to compare them, hence the required version (504) is greater than the version you have (60). Unfortunately hat won't work with version 6.0 either due to some changes in the most recent version of ghc. I believe it's being worked on, but Malcolm Wallace and Colin Runciman are the people to ask about that. I would suggest using ghc 5.04.2, or nhc98 for the moment.
Basically, if you use the versions of software listed on the site it should work - others can be glitchy Hope this helps Tom Davie

Robert van Herk
First, I tried download the latest releases of ghc, hmake and hat. However, hat refused to compile because it found the ghc version too low (although, in fact, it is probably to new).
The 2.02 release of Hat is quite old now and does not compile with ghc-6.x. The CVS version works with all versions of ghc from 5.04.3 upwards. We do plan to make a new release from CVS at some point, but, as always, there are many other changes we would like to incorporate before that happens. In the meantime, compiling from CVS is probably your best route to a working Hat.
Stop - hmake dependency error. cd src/hattools; make HC=ghc install make[1]: Entering directory `/home/robert/src/hat/src/hattools' hmake -hc=ghc -I. -I/home/robert/src/hat/include -fglasgow-exts -package lang -package util -DUSE_READLINE=1 SrcRefViewer \ -d/home/robert/src/hat/targets/ix86-Linux/obj/hattools
Fail: Can't find module System in user directories . . /home/robert/src/hat/include Or in installed libraries/packages at /usr/local/lib/ghc-6.2.1/imports /home/robert/soft/lib/ghc-6.2.1/hslibs-imports/lang /home/robert/soft/lib/ghc-6.2.1/hslibs-imports/util Asked for by: SrcRefViewer.hs Fix using the -I, -P, or -package flags.
OK, it looks like we are missing a ghc package dependency on the original Haskell'98 libraries. Try adding the arguments -package haskell98 to the HMAKEFLAGS at the top of src/hattools/Makefile. Regards, Malcolm
participants (3)
-
Malcolm Wallace
-
Robert van Herk
-
Thomas Davie