[Haskell-cafe] Detect Either Windows or Linux environment

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sat May 5 02:56:20 EDT 2007


On Fri, 2007-05-04 at 22:23 -0700, SevenThunders wrote:

> > Prelude System.Info> [os, arch]
> > ["darwin","powerpc"]

> 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.

Duncan



More information about the Haskell-Cafe mailing list