Ok, I see - the value for ghc 7.4.0 is supposed to be 704, the value for ghc 7.0.4 is supposed to be 700.
On Wed, Jan 4, 2012 at 6:38 AM, David Fox <dds...@gmail.com> wrote: > Below you can see that the C preprocessor is seeing > -D__GLASGOW_HASKELL__=704 rather than 740 or 741. I actually can't believe > things are working as well as they are with this set wrong, I must be > confused about something. > > # ghc --version > The Glorious Glasgow Haskell Compilation System, version 7.4.0.20111219 > # ghc -v src/HSP/XMLGenerator.hs > Glasgow Haskell Compiler, Version 7.4.0.20111219, stage 2 booted by GHC > version 7.0.4 > Using binary package database: /usr/lib/ghc/package.conf.d/package.cache > hiding package QuickCheck-1.2.0.1 to avoid conflict with later version > QuickCheck-2.4.2 > hiding package parsec-2.1.0.1 to avoid conflict with later version > parsec-3.1.1 > hiding package deepseq-1.2.0.1 to avoid conflict with later version > deepseq-1.3.0.0 > hiding package binary-0.5.0.3 to avoid conflict with later version > binary-0.5.1.0 > wired-in package ghc-prim mapped to > ghc-prim-0.2.0.0-8ac016c3ce1a849dd0dc79e063bc9557 > wired-in package integer-gmp mapped to > integer-gmp-0.4.0.0-e41cd2dccf9e5fe2691d1d2675c27e0e > wired-in package base mapped to > base-4.5.0.0-34c7e4892a2dab9adf7d854321107d7b > wired-in package rts mapped to builtin_rts > wired-in package template-haskell mapped to > template-haskell-2.7.0.0-92561749764e9edfa955dd746059a058 > wired-in package dph-seq not found. > wired-in package dph-par not found. > Hsc static flags: -static > *** Chasing dependencies: > Chasing modules from: *src/HSP/XMLGenerator.hs > Created temporary directory: /tmp/ghc10150_0 > *** C pre-processor: > '/usr/bin/gcc' '-E' '-undef' '-traditional' '-fno-stack-protector' > '-Wl,--hash-size=31' '-Wl,--reduce-memory-overheads' '-I' > '/usr/lib/ghc/base-4.5.0.0/include' '-I' '/usr/lib/ghc/include' > '-D__GLASGOW_HASKELL__=704' '-Dlinux_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' > '-Dlinux_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-x' 'c' > 'src/HSP/XMLGenerator.hs' '-o' '/tmp/ghc10150_0/ghc10150_0.hscpp' > *** Haskell pre-processor: > 'trhsx' 'src/HSP/XMLGenerator.hs' '/tmp/ghc10150_0/ghc10150_0.hscpp' > '/tmp/ghc10150_0/ghc10150_0.hspp' > >