This project is mirrored from Pull mirroring updated .
  1. 29 Jan, 2008 1 commit
  2. 23 Jan, 2008 2 commits
  3. 21 May, 2007 1 commit
  4. 04 May, 2007 1 commit
  5. 03 May, 2007 2 commits
  6. 30 Apr, 2007 2 commits
    •'s avatar
      Fix openTempFile so it works on windows with ghc at least · 5390172f authored
      It's still a hack. The right solution is to proerly implement openTempFile
      in base for all Haskell impls, not just GHC.
    •'s avatar
      Use rawSystem not system for capturing output of commands · 1cbfb5e0 authored
      For example we were using a wrapper around 'system' to find the haddock
      version. This invokes the system command interpreter and passes the
      command to run as an argument. If the command has spaces in it and is not
      properly escaped then everything goes wrong. This happens for example
      on windows when haddock and other programs are kept under "Program Files".
      So the right thing to do is never to use system, but always rawSystem since
      then there are no escaping issues.
      This patch replaces a couple function systemCaptureStdout and systemGetStdout
      with rawSystemStdout which now lives in Distribution.Simple.Utils.
      This also uses some rather nasty code to get the output of a command.
      It really really should not be this hard to do portably. To work around
      the fact that we cannot use runInteractiveProcess we instead have to create
      a temporary file. This also turns out to be a hack because the 'standard'
      openTempFile is not implemented except by GHC, so we now have a hacky version
      living in Distribution.Compat.TempFile just waiting for the standard 
      openTempFile to be made properly portable, or for us to get some
      System.Process function that does what we want.