Actually -stubdir only works well in ghc-6.8 due to -I search dir mess
Actually -stubdir only works well in ghc-6.8 due to -I search dir mess

In ghc-6.6 the Foo/Bar.hc files only #include "Bar_stub.h" rather than
#include "Foo/Bar_stub.h". This means when we set the stubdir so that the
_stub.h files don't sit next to the .hs file then the include search path
is not right to find the _stub.h file. In ghc-6.8 this is fixed so that
it adds the -stubdir path to the include search path when calling gcc.

20070926131843-adfee-2cc20c67c1656d3dffd0757b193c32c76618ae6b.gz

dcreager/cabal,dcreager/cabal