System.Info.os is wrong, Was Re: HDBC-ODBC compile problem
Neil Mitchell
ndmitchell at gmail.com
Mon Jul 17 17:38:33 EDT 2006
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
More information about the Libraries
mailing list