Hi, Does anybody have the Fudgets library working with GHC 5.04.3 ? I know the library is tested under GHC 5.02 but I would rather not install two versions of GHC. Bas.
hi, it works fine with GHC 5.04.3. in fact we are using it for one of our projects here at OGI. bye iavor Bas van Dijk wrote:
Hi,
Does anybody have the Fudgets library working with GHC 5.04.3 ?
I know the library is tested under GHC 5.02 but I would rather not install two versions of GHC.
Bas.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Great! it's working now... I accidently downloaded the newest untested version (April 2003) from the Fudget website. That version gave errors while making. Now I use the h13w (May 2002) version that installed without problems. So now it's time to get my hands dirty... I don't have much experience with Haskell and GHC yet. So would anybody be so kind enough to explain to me how to compile a Fudget program with GHC? I know it's something like:
ghc -package Fudgets myfirstfudgetsapp.hs But I'm not sure.
INFO: My GHC library directory: /usr/lib/ghc-5.04.3/ The fudget library: /usr/lib/ghc-5.04.3/GhcFudgets Thanks, Bas. The Netherlands. P.S. Sorry if this mail shouldn't be posted to the Haskell-Mailinglist... maybe the GHC list? iavor wrote:
hi,
it works fine with GHC 5.04.3. in fact we are using it for one of our projects here at OGI.
bye iavor
Bas van Dijk wrote:
Hi,
Does anybody have the Fudgets library working with GHC 5.04.3 ?
I know the library is tested under GHC 5.02 but I would rather not install two versions of GHC.
Bas.
Bas van Dijk wrote:
Great! it's working now...
I accidently downloaded the newest untested version (April 2003) from the Fudget website. That version gave errors while making.
In hsrc/ghmklib and Contrib/Makefile, there are options for which make tool to use. I think the 030414 version uses humake by default.
I know it's something like:
ghc -package Fudgets myfirstfudgetsapp.hs
The fudget library was created long before GHC's package system and has not (yet) adapted to use it, so instead we provide two wrapper scripts that pass the right flags to GHC. So, do
ghcxmake myfirstfudgetsapp (requres hmake) or ghuxmake myfirstfudgetsapp (requires humake). You can include additional flags to pass to GHC. Also, some recent binary snapshots (I added a new one for GHC 5.04.3 today) are availalbe from http://www.cse.ogi.edu/~hallgren/untested/ We have fixed some small bugs and performance problems since the h13w version. -- Thomas H PS Although the package system is useful, I think the solution with a global configuration file is an inherently bad idea...
In hsrc/ghmklib and Contrib/Makefile, there are options for which make tool to use. I think the 030414 version uses humake by default.
OK I downloaded the 030414 version... I uncommented the following lines in hsrc/ghmklib: ------------------------- ###The new new way: use ghc --make ! (but ghc --make is not mature enough yet) ghcmake="ghc --make" subdirs=`echo $subdirs | sed 's/-I /-i/g'` ------------------------- After this I ran "make ghc-all" The hsrc directory compiled fine. But after that it moved to the Contrib directory and I got these errors: ------------------------- make[1]: Entering directory `/home/bas/downloads/Fudgets/Contrib' ../hsrc/get_files hi ghc Retrieving ghc version of the .hi files. ../hsrc/get_files o ghc0 Retrieving ghc0 version of the .o files. env GHCFUDGETS=../GhcFudgets ../bin/ghuxmake -batch -cpp -O2 ContribFudgets.hs ../bin/ghuxmake: line 44: ghumake: command not found make[1]: *** [ghc-lib.a] Error 127 make[1]: Leaving directory `/home/bas/downloads/Fudgets/Contrib' make: *** [ghc-contrib] Error 2 ------------------------- What do I have to change in: Contrib/Makefile to get it going? If the source distribution doens't work then I gues I just have to use the binaries... :-( Bas van Dijk.
Bas van Dijk wrote:
In hsrc/ghmklib and Contrib/Makefile, there are options for which make tool to use. I think the 030414 version uses humake by default.
env GHCFUDGETS=../GhcFudgets ../bin/ghuxmake -batch -cpp -O2 ContribFudgets.hs ../bin/ghuxmake: line 44: ghumake: command not found
The Contrib/Makefile also uses humake by default, but can change it to use hmake (ghc --make doesn't work here...).
What do I have to change in: Contrib/Makefile to get it going?
Install hmake, and comment in the definition GHCXMAKE = ../bin/ghcxmake -cpp and comment out the other definition of GHCXMAKE. (Or install humake.)
If the source distribution doens't work then I gues I just have to use the binaries... :-(
Yes, why not? The point of binary distributions is to make things easier for users... :-) -- Thomas H
hello, i have made a package file for GHC. this is how you can install fudgets. 1. download it: http://www.cse.ogi.edu/~hallgren/untested/fudgets-030414-ghc-5.04.3-i386-lin... 2. unzip it: tar -C /usr/local -xzvf fudgets-030414-ghc-5.04.3-i386-linux-rh9.tar.gz 3. add it to the ghc package database: env GHCFUDGETS=/usr/local/lib/GhcFudgets ghc-pkg -a < fudgets.pkg (this is in csh, for bash simply remove the "env") then you should be able to compile programs using fudgets like this: ghc --make -package fudgets SpaceInvaders2.hs hope this helps. bye iavor Bas van Dijk wrote:
Hi,
Does anybody have the Fudgets library working with GHC 5.04.3 ?
I know the library is tested under GHC 5.02 but I would rather not install two versions of GHC.
Bas.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Package { name = "fudgets", import_dirs = ["${GHCFUDGETS}"], source_dirs = [], library_dirs = ["${GHCFUDGETS}","${GHCFUDGETS}/contrib","/usr/X11R6/lib"], hs_libraries = ["Fudgets","FudgetsXlib","ContribFudgets"], extra_libraries = ["X11","Xext"], include_dirs = [], c_includes = [], package_deps = ["lang"], extra_ghc_opts = ["-fglasgow-exts"], extra_cc_opts = [], extra_ld_opts = [] }
participants (3)
-
Bas van Dijk -
Iavor Diatchki -
Thomas Hallgren