Op do, 12-10-2006 te 19:57 +0100, schreef Ian Lynagh: > Hi all, > > GHC 6.6 for x86 and amd64 unstable should now be in Haskell Unsafe > http://haskell-unsafe.alioth.debian.org/haskell-unsafe.html > > Extralibs will follow. > > Please let me know of any problems with the debs.
I have a little problem with my Debian HaXml package which won't build with the new GHC 6.6 version. In the package the library gets build first with something like: ghc --make -package base -package-name HaXml $(LIBSRCS) ar r libHSHaXml.a $(LIBOBJS) After that the compilation continues with the tools, which goes something like: cd tools ; ghc --make -package base -package-name HaXml -i.. -i. DtdToHaskell -o DtdToHaskell This works with ghc 6.4, but with ghc 6.6 this fails at the linking stage and in the verbose output I suddenly see: Main.main not exported; not linking. This probably has to do with changes in the module handling: The restriction that you cannot use two packages together if they contain a module with the same name has been removed. In implementation terms, the package name is now included in every exported symbol name in the object file, so that modules with the same name in different packages do not clash. See Section 4.8.2, “Consequences of packages I can work around this by dropping the -package-name HaXml when I compile the tools, but then it recompiles a lot of the library sources. I have also tried a couple of -main-is variations but none seem to help. With a simple testcase like the one attached the behaviour can be observed: ghc --make Test.hs succeeds ghc --make -package-name Foo Test.hs fails. Is this intentional behaviour in ghc 6.6 or is this a bug? Greetings Arjan
module Fibo where type Quad = (Integer,Integer) newtype Gauss = Karl Quad instance Eq Gauss where Karl (a,b) == Karl (c,d) = a == c && b == d instance Show Gauss where
signature.asc
Description: Dit berichtdeel is digitaal ondertekend
_______________________________________________ debian-haskell mailing list [email protected] http://urchin.earth.li/mailman/listinfo/debian-haskell

