<div dir="ltr">The value 708 is correct.  From the user's guide, <a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#c-pre-processor">http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#c-pre-processor</a>:<div><br></div><div><div>_GLASGOW_HASKELL__</div><div>For version x.y.z of GHC, the value of __GLASGOW_HASKELL__ is the integer xyy (if y is a single digit, then a leading zero is added, so for example in version 6.2 of GHC, __GLASGOW_HASKELL__==602). More information in Section 1.4, “GHC version numbering policy”.</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 11:09 AM, Greg Fitzgerald <span dir="ltr"><<a href="mailto:garious@gmail.com" target="_blank">garious@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using GHC 7.8.3 from the latest Haskell Platform on OS X 10.9.4, the<br>
__GLASGOW_HASKELL__ preprocessor symbol is being set to 708 instead of<br>
783.  I'd guess I have some stale files lying from previous versions<br>
GHC or HP, but I can't seem to find them.  Any clues?<br>
<br>
<br>
$ cat wtf.hs<br>
<br>
{-# LANGUAGE CPP #-}<br>
<br>
$ ghc-7.8.3 -v -E wtf.hs 2>&1 | grep 708<br>
<br>
/usr/bin/gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode<br>
-Wno-trigraphs -I<br>
/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/base-4.7.0.1/include<br>
-I /Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/integer-gmp-0.5.1.0/include<br>
-I /Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/include<br>
'-D__GLASGOW_HASKELL__=708' '-Ddarwin_BUILD_OS=1'<br>
'-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1'<br>
-U__PIC__ -D__PIC__ '-D__SSE__=1' '-D__SSE2__=1' -x assembler-with-cpp<br>
wtf.hs -o /var/folders/w7/_cxvr2k540163p59kwvqlzrc0000gn/T/ghc14288_0/ghc14288_1.hscpp<br>
<br>
<br>
Thanks,<br>
Greg<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br></div>