... this time with today's ghc-4.02: There is a name clash when
multiple foreign export dynamics are used within a module:

---------------------------------------------------------------
module Blah where
import Addr
foreign export ccall dynamic mkFooCallback :: IO () -> IO Addr
foreign export ccall dynamic mkBarCallback :: IO () -> IO Addr
---------------------------------------------------------------
panne@liesl: > ghc -fglasgow-exts -recomp -Wall -O -c Blah.hs
ghc: module version changed to 1; reason: no old .hi file
/tmp/ghc31110.hc:215: redefinition of `Blah_ds_closure'
/tmp/ghc31110.hc:115: `Blah_ds_closure' previously defined here
/tmp/ghc31110.hc:289: redefinition of `Blah_ds_info'
/tmp/ghc31110.hc:189: `Blah_ds_info' previously defined here
/tmp/ghc31110.hc:290: redefinition of `Blah_ds_entry'
/tmp/ghc31110.hc:190: `Blah_ds_entry' previously defined here
/tmp/ghc31110.hc:300: redefinition of `Blah_ds_fast1'
/tmp/ghc31110.hc:200: `Blah_ds_fast1' previously defined here
---------------------------------------------------------------

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne

Reply via email to