GHC and Windows (DLL/FFI) woes

Benjamin Franksen benjamin.franksen at
Wed Oct 26 15:41:05 EDT 2005

On Monday 24 October 2005 12:01, Simon Marlow wrote:
> On 23 October 2005 19:00, Esa Ilari Vuokko wrote:
> > I have been trying to build some Windows DLLs with
> > GHC, and I have run into some misfeatures or maybe
> > I have misunderstood how to use GHC.  Any help or
> > advice would be appreciated. :)
> >
> > First of all, I can't get ghc to generate stubs from
> > foreign export in anywhere else than next to original
> > source, which is sort of annoying.  I would like all
> > the generated files to go quite a bit diffrent place than
> > source directory.
> We don't have a flag for that; perhaps we should.  Or perhaps there
> should be a flag that says "put all generated files here", that
> subsumes -odir, -hidir, -hcdir and also coveres _stub.{c,h} files.

Yes, please! This would have helped me a lot in a past project, where I 
wanted to build two slightly different versions at the same time.


More information about the Glasgow-haskell-users mailing list