I was not aware of that! Very cool. 




Trystan Spangler 



----- Original Message ----- 
From: "Henning Thielemann" <lemm...@henning-thielemann.de> 
To: "trystan s" <trysta...@comcast.net> 
Cc: "Felipe Almeida Lessa" <felipe.le...@gmail.com>, haskell-cafe@haskell.org 
Sent: Monday, March 7, 2011 9:56:16 AM 
Subject: Re: silently-0.0.1 (prevent IO actions from writing to stdout) 


On Mon, 7 Mar 2011, trysta...@comcast.net wrote: 

> * I could see what OS it is and try those options and use a temp file only if 
> it's an 
> unexpected os. Unfortunately System.Info.os reports windows (and some other 
> os's) as 
> "mingw32", I think it's because of how GHC was compiled. Who knows what the 
> real os is 
> or what each os will be reported as in the future or how they appear to other 
> compilers 
> and runtimes. 

You could add a check to Cabal and then choose a platform-dependent module 
using 

If os(windows) 
Hs-Source-Dirs: windows/src 
Else 
Hs-Source-Dirs: unix/src 
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to