Happy generates uncompilable files

Josef Svenningsson josefs at cs.chalmers.se
Thu Nov 8 11:15:48 EST 2001


Hi!

Here's a small patch to fptool/mk/config.mk.in which I need for the
compiler to compile smoothely on my sparc:

*** config.mk.in        Thu Nov  8 17:12:46 2001
--- ../../fptools/mk/config.mk.in       Wed Nov  7 16:23:03 2001
***************
*** 833,843 ****
  #
  # Options to pass to Happy when we're going to compile the output with
GHC
  #
- ifeq "$(i386_TARGET_ARCH)" "1"
  GHC_HAPPY_OPTS                = $(shell if ( test `echo $(HAPPY_VERSION)
| sed -e "s/\(.*\)\..*/\1/g"` "-gt" "1" || test `echo $(HAPPY_VERSION) |
sed -e "s/.*\.\(.*\)/\1/g"` "-ge" "9" ); then echo -agc; else echo -g; fi)
- else
- GHC_HAPPY_OPTS                = -gc
- endif

  #
  # Stuff from fptools/literate
--- 833,839 ----


Why? Because with the -a flag happy generates files which uses the
Int16Rep function. This is only implemented for x86. :-(

Could you please add this patch? It would make my life a lot easier.

Cheers,

	/Josef





More information about the Glasgow-haskell-bugs mailing list