GHCI Can't Find Module But GHC Can

Simon Marlow
Wed, 26 Jun 2002 18:07:18 +0100

> I think the problem is that GHCi doesn't respect #ifdef=20
> 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__ <=3D 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 =