Patch for compiling nhc98-1.0pre18



About this list Date view Thread view Subject view Author view

José Romildo Malaquias (romildo@urano.iceb.ufop.br)
Wed, 26 Apr 2000 08:54:47 -0300


On Wed, Apr 26, 2000 at 08:45:46AM -0300, José Romildo Malaquias wrote: > That worked and I could finally "make all" with ghc-4.06. I forgot to attach the patch I have used to compile nhc98-pre18 with ghc-4.06 and "make all" (in a Red Hat Linux 6.2 box). Here it is. Romildo -- Prof. José Romildo Malaquias <romildo@iceb.ufop.br> Departamento de Computação Universidade Federal de Ouro Preto Brasil

diff -ur nhc98-1.0pre18.orig/script/GenerateErrNo.hs nhc98-1.0pre18/script/GenerateErrNo.hs --- nhc98-1.0pre18.orig/script/GenerateErrNo.hs Tue Mar 21 13:02:16 2000 +++ nhc98-1.0pre18/script/GenerateErrNo.hs Tue Apr 25 22:14:28 2000 @@ -29,7 +29,7 @@ "#endif\n" cprogFooter = - " printf(\"module Prelude where\\n\\n\");\n" ++ + " printf(\"module DErrNo where\\n\\n\");\n" ++ " printf(\"{- Automatically generated from /usr/include/errno.h -}\\n\\n\");\n" ++ " printf(\"data ErrNo =\\n\");\n" ++ " printf(\" Edummy\\n\");\n" ++ diff -ur nhc98-1.0pre18.orig/script/errnogen.c nhc98-1.0pre18/script/errnogen.c --- nhc98-1.0pre18.orig/script/errnogen.c Tue Mar 21 13:02:42 2000 +++ nhc98-1.0pre18/script/errnogen.c Tue Apr 25 22:14:28 2000 @@ -1285,7 +1285,7 @@ errs[EREMOTERELEASE] = "EREMOTERELEASE"; if (EREMOTERELEASE>max) max=EREMOTERELEASE; #endif - printf("module Prelude where\n\n"); + printf("module DErrNo where\n\n"); printf("{- Automatically generated from /usr/include/errno.h -}\n\n"); printf("data ErrNo =\n"); printf(" Edummy\n"); diff -ur nhc98-1.0pre18.orig/src/prelude/Numeric/ShowFloat.hs nhc98-1.0pre18/src/prelude/Numeric/ShowFloat.hs --- nhc98-1.0pre18.orig/src/prelude/Numeric/ShowFloat.hs Mon Apr 10 13:28:33 2000 +++ nhc98-1.0pre18/src/prelude/Numeric/ShowFloat.hs Tue Apr 25 22:14:00 2000 @@ -1,6 +1,6 @@ module Numeric(showFloat) where -import Ratio(Ratio,(%)) +import Ratio(Ratio,Rational,(%)) -- The number of decimal digits m below is chosen to guarantee -- read (show x) = x. See diff -ur nhc98-1.0pre18.orig/src/prelude/Prelude/Makefile nhc98-1.0pre18/src/prelude/Prelude/Makefile --- nhc98-1.0pre18.orig/src/prelude/Prelude/Makefile Mon Oct 11 09:50:29 1999 +++ nhc98-1.0pre18/src/prelude/Prelude/Makefile Tue Apr 25 22:14:28 2000 @@ -122,7 +122,7 @@ LOW = ../LowB/ -HFLAGS = -P./ -P$(LOW) -P../PreludeList/ -P../Ratio/ -part -prelude -redefine +HFLAGS = -P$(LOW) -P../PreludeList/ -P../Ratio/ -part -prelude -redefine all: ${OBJS} ${MAINOBJ}


About this list Date view Thread view Subject view Author view