Re: [Haskell-cafe] different code in different platforms

2006-03-15 Thread Neil Mitchell
Hi, Does it really have to change statically? > I use code like: > #ifdef __WIN32__ > (Windows code) > #else > (Linux code) > #endif In Yhc, we use a runtime test to check between Windows and Linux. It has various advantages - we only have one code base, everything is type checked when w

[Haskell-cafe] different code in different platforms

2006-03-15 Thread José Miguel Vilaça
Sorry. In the previous email I forgot the subject.   Hi   I’m having a small problem with the portability of my Haskell code. My code uses wxHaskell and the library for which this one is the Haskell interface (that is called wxWidgets) doesn’t work in the same away in Windows and Linux.