
I may need to put some #ifdef conditionalizations into some cross-platform code. I'm wondering where I can find the definitions of symbols like __NHC__. I tried googling but I'm swamped by uses, no definitions that I can see.

gladstein@gladstein.com writes:
I may need to put some #ifdef conditionalizations into some cross-platform code. I'm wondering where I can find the definitions of symbols like __NHC__. I tried googling but I'm swamped by uses, no definitions that I can see.
Looks like they're here: http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html (Note: I don't know how authorative/complete that list is.) -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

__NHC__ is defined when the code is compiled with the nhc98 compiler
[1]. Similarly Hugs is another Haskell implementation.
[1]: http://www.haskell.org/nhc98/
On 14 April 2010 11:36,
I may need to put some #ifdef conditionalizations into some cross-platform code. I'm wondering where I can find the definitions of symbols like __NHC__. I tried googling but I'm swamped by uses, no definitions that I can see.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Push the envelope. Watch it bend.
participants (3)
-
gladsteinīŧ gladstein.com
-
Ivan Lazar Miljenovic
-
Thomas Schilling