[Gtk2hs-users] ghci-5.04.3 and ghc-6.0

Simon Marlow simonmar@microsoft.com
Tue, 17 Jun 2003 12:15:58 +0100

> What seems to be happening is that the Arrow module in gtk2hs is
> clashing with the Arrow module in the lang package. As far as=20
> I can tell
> this all looks perfectly normal, so why don't we this kind of problem
> all the time? What's special about Arrow?
> How does it get resolved in the libHS*.a case? How does the=20
> system linker resolve the ambiguity when ghci's linker cannot?

The static linker will simply pick the first __stginit_Arrow it finds
when searching libraries.  In actual fact, you're better off with the
linking error, because the static linking behaviour is likely to result
in crashes at runtime.