
26 Jun
2002
26 Jun
'02
5:07 p.m.
I think the problem is that GHCi doesn't respect #ifdef conditional compilation. The HaXml package has modules with stuff like
#if defined(__HBC__) import IOMisc #endif
which seems to confuse the interpreter (but not the compiler). I've also seen reports that recent versions of GHC don't grok lines like
#if __GLASGOW_HASKELL__ <= 210
I wasn't aware of any bugs in that area, can anyone provide some sample code? (and I'm surprised, because GHCi just runs cpp in the same way as GHC). Cheers, Simon