[Haskell-cafe] Detect Either Windows or Linux environment

Neil Mitchell ndmitchell at gmail.com
Sat May 5 04:37:15 EDT 2007


Hi

> > Thank you for your help.  I somehow missed that when I was browsing through
> > the library documentation.
> > On windows, interestingly the os function returns "mingw"
>
> Yes, that's one of Neil's pet hates. It might change so something more
> obvious some time.

On Yhc the os function will return the name of the OS, on GHC and Hugs
it returns mingw even if you are using the native WinHugs build done
using Visual Studio and have never installed mingw...

And its still one of my pet hates!

Thanks

Neil


More information about the Haskell-Cafe mailing list