[cvs-nhc98] cvs commit: nhc98/src/hmake MkConfig.hs
Simon Marlow
simonmar at microsoft.com
Tue Aug 17 04:59:41 EDT 2004
On 16 August 2004 17:03, Malcolm Wallace wrote:
> Maybe we should add a new option to the compiler, rather like cpp -dM,
> to report any cpp symbols that are automatically defined.
Not quite as concise as cpp -dM </dev/null, but it does the same thing:
$ ghc -E -optP-dM -cpp -o /dev/stdout foo.hs
Also you can get the information from ghc -v.
And how about this to get the __GLASGOW_HASKELL__ version:
$ echo __GLASGOW_HASKELL__ >/tmp/foo.hs; \
ghc -E -cpp -optP-P /tmp/foo.hs -o /dev/stdout; \
rm -f /tmp/foo.hs
602
I just need to add a flag like gcc's -x flag and the need to create the
temporary file would go away too.
Cheers,
Simon
More information about the Cvs-nhc98
mailing list