first-time CVS build...

Simon Marlow simonmar@microsoft.com
Sun, 11 Feb 2001 02:54:54 -0800


> I have also had problems with happy 1.10, I had to change
> fptools/happy/templates/Makefile in the following way :
> 
> HappyTemplate : $(GENERIC_TEMPLATE)
> -	$(HC) -E -cpp $(GENERIC_TEMPLATE) > $@
> +	$(HC) -E -cpp $(GENERIC_TEMPLATE) -o $@
> 
> (same for the other rules).
> Otherwise I get empty template files.  Will -o always work ?  
> I mean, does
> it work with previous versions of ghc ?
> 
> There is still a problem with 
> fptools/ghc/compiler/rename/ParseIface.y,
> I had to modify the generates hs file - replacing the occurence of
> HappyAbsSyn38 by HappyAbsSyn37 fixes the problem and seems correct,
> but this is a hack.  Is Happy broken ?

I've fixed the HappyAbsSyn38 problem in the happy CVS sources.  However,
I still recomend using happy 1.9 until I can take a look at the
configuration bugs.  The makefile for the templates also needs to check
the GHC version number, since the behaviour of -E changed since 4.08.X.

Cheers,
	Simon