On Fri, Jul 29, 2005 at 04:31:43PM +0100, Ian Lynagh wrote: > On Fri, Jul 29, 2005 at 08:35:06AM -0400, David Roundy wrote: > > cat > config.hs <<EOF > > #ifdef WIN32 > > main = putStr "windows" > > #else > > main = fail "not windows" > > #endif > > EOF > > Isn't this test used to decide whether to define WIN32?
Ooops! :) > We ought to be able to use System.Info.os for the test, though. > Apparently it's "mingw32" on Windows. We could perhaps make the check a tad more robust by checking something like: map toLower System.Info.os `contains` "w32" -- David Roundy http://www.darcs.net _______________________________________________ darcs-devel mailing list [email protected] http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
