
17 Jul
2006
17 Jul
'06
5:38 p.m.
Hi,
let isWindows = "mingw" `isPrefixOf` System.Info.os
Eeeeekkkkkk!!!!! Arrrrrggggghhhhh!!!! You're relying on the fact that System.Info.os is wrong to do a conditional test. Certainly for something like WinHugs/Yhc they may have never seen the evil horrors that is mingw, and certainly don't ship with any of the mingw tools. (Of course, with Hugs and GHC this code does exactly what you want, so this does work in practice) I am hoping that Yhc will return "windows" for the answer to System.Info.os, but perhaps this issue needs exploring more deeply - maybe an enumeration for os with an other field or something... Thanks Neil