Hat bug report: hat 2.02 vs ghc 6.2

I tried building Hat 2.02-8 from sources on Debian Linux (testing) using ghc 6.2. It did not compile. I got the following error message: Hat/Foreign/ForeignPtr.hs:89: Variable not in scope: `Foreign.ForeignPtr.foreignPtrToPtr' Hat built OK when configured with "configure --buildwith=ghc5", though. -- Fergus J. Henderson | "I have always known that the pursuit Galois Connections, Inc. | of excellence is a lethal habit" Phone: +1 503 626 6616 | -- the last words of T. S. Garp.

I tried building Hat 2.02-8 from sources on Debian Linux (testing) using ghc 6.2. It did not compile. I got the following error message:
Hat/Foreign/ForeignPtr.hs:89: Variable not in scope: `Foreign.ForeignPtr.foreignPtrToPtr'
Hat built OK when configured with "configure --buildwith=ghc5", though.
I don't know which patches have been applied to the Debian package. I would suggest building from CVS for the best compatibility. My nightly build uses both ghc-5.04.3 and ghc-6.2.1 and they compile just fine. The repository is at cvs.haskell.org, in module hat. Regards, Malcolm

On 22-Jun-2004, Malcolm Wallace
I don't know which patches have been applied to the Debian package.
See attached for the full list. Looking at those patches, I see that the problem is indeed in the patch. Part of the patch is + +Foreign/ForeignPtr.hs: + if [ $(HC) = ghc6 ]; then cp Foreign/ForeignPtr-ghc6.hs $@; \ + else cp Foreign/ForeignPtr-other.hs $@; fi + which doesn't work properly in the case when HC=ghc and the ghc program in the PATH happens to be ghc version 6.2. HC=ghc seems to be the default if ghc is in your PATH and you don't specify any options to configure. -- Fergus J. Henderson | "I have always known that the pursuit Galois Connections, Inc. | of excellence is a lethal habit" Phone: +1 503 626 6616 | -- the last words of T. S. Garp.
participants (2)
-
Fergus Henderson
-
Malcolm Wallace