[Haskell-cafe] silently-0.0.1 (prevent IO actions from writing to stdout)

Henning Thielemann lemming at henning-thielemann.de
Mon Mar 7 18:56:16 CET 2011

On Mon, 7 Mar 2011, trystan.s at 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 

   If os(windows)
     Hs-Source-Dirs: windows/src
     Hs-Source-Dirs: unix/src

More information about the Haskell-Cafe mailing list