FIX #1533: foreign exporing the same identifier multiple times gave a link error
authorSimon Marlow <simonmar@microsoft.com>
Tue, 28 Aug 2007 09:15:50 +0000 (09:15 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 28 Aug 2007 09:15:50 +0000 (09:15 +0000)
commitdf6d4b9ae4f9b5e167aec723b70aa20a448c01d6
treec1e7ba4ee9f70c9a8d12a35c6f0d509808e57d1a
parentfa6c4bf01427a4191a595afecf90d96b27bad306
FIX #1533: foreign exporing the same identifier multiple times gave a link error
We were generating a new top-level binding derived from the name of
the existing top-level name, and making the name external.  Multiple
instances therefore clashed.  The fix is to make each name unique, by
appending an actual Unique to the derived name.
compiler/typecheck/TcForeign.lhs