<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><p>I was not aware of that! Very cool.</p><p><br></p><p>Trystan Spangler<br></p><p><br></p>----- Original Message -----<br>From: "Henning Thielemann" <lemming@henning-thielemann.de><br>To: "trystan s" <trystan.s@comcast.net><br>Cc: "Felipe Almeida Lessa" <felipe.lessa@gmail.com>, haskell-cafe@haskell.org<br>Sent: Monday, March 7, 2011 9:56:16 AM<br>Subject: Re: silently-0.0.1 (prevent IO actions from writing to stdout)<br><br><br>On Mon, 7 Mar 2011, trystan.s@comcast.net wrote:<br><br>> * I could see what OS it is and try those options and use a temp file only if it's an<br>> unexpected os. Unfortunately System.Info.os reports windows (and some other os's) as<br>> "mingw32", I think it's because of how GHC was compiled. Who knows what the real os is<br>> or what each os will be reported as in the future or how they appear to other compilers<br>> and runtimes.<br><br>You could add a check to Cabal and then choose a platform-dependent module <br>using<br><br> If os(windows)<br> Hs-Source-Dirs: windows/src<br> Else<br> Hs-Source-Dirs: unix/src<br></div></body></html>