System.Info.os is wrong
ndmitchell at gmail.com
Tue Jul 18 08:21:19 EDT 2006
> >> let isWindows = "mingw" `isPrefixOf` System.Info.os
> how i can test this more correctly?
Unfortunately, you can't - which is my point.
> #if defined(mingw32_HOST_OS) || defined(__MINGW32__) || defined(_MSC_VER)
#ifdef WIN32 should pick up most things I believe, certainly when
compiled with MSVC, and I think also with Mingw, but you'd need to
More information about the Libraries