Re: nhc98-1.00 bug report



About this list Date view Thread view Subject view Author view

Thomas Hallgren (hallgren@cs.chalmers.se)
Thu, 23 Nov 2000 12:17:17 +0100


Malcolm Wallace wrote: > import qualified A > import qualified A () > import qualified A (a) > import qualified A (a,b,c) > > all mean the same thing - that all identifiers from A are visible > with qualified names. The explicit list of identifiers is redundant - > although it is of course checked by the compiler for consistency. Accoring to my interpretation of the Haskell 98 report, only the explicitly mentioned names should be brought into scope, even for qualified imports. And I think this the way it should be, since you might want to state, for clarity, exactly what is imported, even for qualified imports, and you might also need to restrict whatis imported to avoid amiguities if you use the same local alias for two imported modules. > > /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1bc): > > undefined reference to `PM_StablePtr' > > Edit all the files in src/prelude/FFI/*.hs, changing all the module > headers to: > module FFI where > Then 'make prelude' and 'make profile'. Finally, copy the new > interface file src/prelude/FFI/FFI.hi to overwrite the existing > file include/FFI.hi. Then 'make install' if you wish. I did this (I even did "make realclean", since I am not sure the Makefiles can be trusted...). Now I get: /usr/local/lib/nhc98/ix86-Linux/Preludep.a(NewIORef.o)(.data+0x94): undefined reference to `FN_StablePtr_46makeStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(NewIORef.o)(.data+0xc4): undefined reference to `PC_StablePtr_46makeStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(ReadIORef.o)(.data+0x58): undefined reference to `FN_StablePtr_46deRefStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(ReadIORef.o)(.data+0x78): undefined reference to `PC_StablePtr_46deRefStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(WriteIORef.o)(.data+0xe0): undefined reference to `FN_StablePtr_46makeStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(WriteIORef.o)(.data+0x188): undefined reference to `FN_StablePtr_46freeStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(WriteIORef.o)(.data+0x1f0): undefined reference to `PC_StablePtr_46makeStablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(WriteIORef.o)(.data+0x220): undefined reference to `PC_StablePtr_46freeStablePtr' Regards, Thomas H


About this list Date view Thread view Subject view Author view