GHCI Can't Find Module But GHC Can
Simon Marlow
simonmar@microsoft.com
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
>=20
> #if defined(__HBC__)
> import IOMisc
> #endif
>=20
> 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
>=20
> #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 =
GHC).
Cheers,
Simon