title: Distributing a Haskell program as C source
body: <p>Say I have a Haskell program or library that I'd like to make accessible to non-Haskellers, potentially C programmers.  Can I compile it to C using GHC and then distribute this as a C source?</p>
  
  <p>If this is possible, can someone provide a minimal example?  (e.g., a Makefile)</p>
  
  <p>Is it possible to use GHC to automatically determine what compiler flags and headers and needed, and then perhaps bundle this into a single folder?</p>
  
  <p>Basically I'm interested in being able to write portions of programs in C and Haskell, and then distributing it as a tarball, but without requiring the target to have GHC and Cabal installed.</p>