id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty,ghcversion,platform
316,"on Windows, include paths with spaces not properly passed to c2hs",jwlato,,"On windows, path names with spaces aren't passed to build tools properly.  In a new project, with a source file Test.chs

and a cabal file with (boilerplate excluded)
{{{
#!c
  exposed-modules: Test
  build-tools:     c2hs
  include-dirs:    ""C:\\Program Files\\include""
}}}

then attempting ""runhaskell Setup.lhs build -v"" indicates that the following is executed:
{{{
#!c
c:\Program Files\Haskell\bin\c2hs.exe --include=dist\build --cppopts=-D__GLASGOW_HASKELL__=608 --cppopts=-IC:\Program Files\include
    --output-dir=dist\build --output=Test.hs Test.chs
}}}

This command fails because c2hs interprets Files\include as a filename to process.
The -IC:\Program Files ... should be quoted to preserve the space in the path.

I have attached a test.cabal and Test.chs file that demonstrate the problem.",defect,closed,normal,,Cabal library,1.2.4.0,normal,fixed,c2hs,,normal,6.8.3,Windows
