[project @ 2000-03-30 09:02:12 by andy]
authorandy <unknown>
Thu, 30 Mar 2000 09:02:12 +0000 (09:02 +0000)
committerandy <unknown>
Thu, 30 Mar 2000 09:02:12 +0000 (09:02 +0000)
Fixing bug with import privileged clashing with import hidden.
This caused a rather nasty name-leak, where catch from the prelude
was being given the type of catch from Exceptions.

Now, when you use import privileged Prelude (...) you also
need to do import Prelude, allowing you the option of
import Prelude hiding (...).

A bucket load of wibbles will follow in various libraries,
implementing this restriction.

ghc/interpreter/storage.c

index c1497a6..01fa014 100644 (file)
@@ -9,8 +9,8 @@
  * included in the distribution.
  *
  * $RCSfile: storage.c,v $
- * $Revision: 1.55 $
- * $Date: 2000/03/24 14:32:03 $
+ * $Revision: 1.56 $
+ * $Date: 2000/03/30 09:02:12 $
  * ------------------------------------------------------------------------*/
 
 #include "hugsbasictypes.h"
@@ -1609,7 +1609,7 @@ void nukeModule ( Module m )
    ObjectCode* oc2;
    Int         i;
 assert(isModule(m));
-fprintf(stderr, "NUKEMODULE `%s'\n", textToStr(module(m).text));
+/*fprintf(stderr, "NUKEMODULE `%s'\n", textToStr(module(m).text)); */
    oc = module(m).object;
    while (oc) {
       oc2 = oc->next;