[Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

Felix Martini fmartini at gmail.com
Sat Feb 2 12:15:27 EST 2008

Magnus Therning wrote:
> Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler
> shipped with Visual Studio Express)?

Duncan Coutts wrote:
> The problem is to get GHC to use 'cl'. That's a longer term project that
> GHC HQ are interested in. There's something about it on the GHC dev wiki
> I think. Don't hold your breath.

When using the native code generator only foreign C code must be
compiled with a C compiler. Presently Cabal passes C sources that are
listed in the 'c-sources' field of a cabal file to GHC. It would be
nice to have a Cabal field to specify the compiler for C sources, say
'c-sources-compiler: msvc'. The default would still be gcc, but with a
Cabal flag the user would be able to change that to e.g. Sun's C

More information about the Haskell-Cafe mailing list