RE: [cvs-nhc98] cvs commit: nhc98/src/hmake MkConfig.hs
17 Aug
2004
17 Aug
'04
10:59 a.m.
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
8089
Age (days ago)
8089
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow