Since GHC 6.14 will (hopefully) be use LLVM as a default backend, an idea has occured to me<div><br></div><div>Should GHC also use the clang (C/C++-&gt;LLVM compiler) on external C library sources which are used with certain Haskell packages (such as gtk) when LLVM does become a default backend for GHC. The consensus is that since Clang will also produce LLVM &#39;assembler&#39;, it can be very easily linked with the LLVM &#39;assembler&#39; produced by GHC&#39;s LLVM backend, making the process of using external C sources a lot easier. Parts of Clang required could even be integrated into GHC (although this may be tricky since its coded in C++). It should also hopefully make using Haskell packages on windows that use C sources less painful</div>
<div><br></div><div>Clang could also make using FFI with C++ much easier (for reasons stated above)</div><div><br></div><div>Thoughts?</div>