* included in the distribution.
*
* $RCSfile: link.c,v $
- * $Revision: 1.26 $
- * $Date: 2000/01/06 16:33:10 $
+ * $Revision: 1.27 $
+ * $Date: 2000/01/07 17:49:29 $
* ------------------------------------------------------------------------*/
#include "prelude.h"
break;
case POSTPREL:
-#if 0
+#if 1
fprintf(stderr, "linkControl(POSTPREL)\n");
#endif
-if (combined) assert(0);
-break;
+ break;
case PREPREL :
* included in the distribution.
*
* $RCSfile: storage.c,v $
- * $Revision: 1.32 $
- * $Date: 2000/01/07 16:56:47 $
+ * $Revision: 1.33 $
+ * $Date: 2000/01/07 17:49:29 $
* ------------------------------------------------------------------------*/
#include "prelude.h"
Tycon addTupleTycon ( Int n )
{
- Int i;
- Kind k;
- Tycon t;
+ Int i;
+ Kind k;
+ Tycon t;
Module m;
+ Name nm;
for (i = TYCMIN; i < tyconHw; i++)
if (tycon(i).tuple == n) return i;
tycon(t).kind = k;
tycon(t).tuple = n;
tycon(t).what = DATATYPE;
+
+ if (n == 0) {
+ /* maybe we want to do this for all n ? */
+ nm = newName(ghcTupleText_n(n), t);
+ name(nm).type = t; /* ummm ... for n > 0 */
+ }
+
return t;
}
* included in the distribution.
*
* $RCSfile: type.c,v $
- * $Revision: 1.20 $
- * $Date: 1999/12/16 16:34:46 $
+ * $Revision: 1.21 $
+ * $Date: 2000/01/07 17:49:29 $
* ------------------------------------------------------------------------*/
#include "prelude.h"
mark(typeProgIO);
break;
- case POSTPREL: break;
+ case POSTPREL:
+
+ if (combined) {
+ setCurrModule(modulePrelude);
+ dummyVar = inventVar();
+ typeUnit = mkTuple(0);
+ arrow = fn(aVar,bVar);
+ listof = ap(typeList,aVar);
+ boundPair = ap(ap(mkTuple(2),aVar),aVar);
+ nameUnit = findQualNameWithoutConsultingExportList
+ (mkQVar(findText("PrelBase"),
+ findText("()")));
+ }
+ break;
case PREPREL :
typeChecker(RESET);
starToStar = simpleKind(1);
- typeUnit = addPrimTycon(findText("()"),
- STAR,0,DATATYPE,NIL);
+ typeUnit = //addPrimTycon(findText("()"),
+ // STAR,0,DATATYPE,NIL);
+ findTycon(findText("()"));
+ assert(nonNull(typeUnit));
+
typeArrow = addPrimTycon(findText("(->)"),
simpleKind(2),2,
DATATYPE,NIL);