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.
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.

mmakowski/cabal,garetxe/cabal,gbaz/cabal,thoughtpolice/cabal,sopvop/cabal,garetxe/cabal,christiaanb/cabal,headprogrammingczar/cabal,mydaum/cabal,seereason/cabal,headprogrammingczar/cabal,lukexi/cabal,christiaanb/cabal,x-y-z/cabal,rimmington/cabal,bennofs/cabal,fugyk/cabal,Heather/cabal,Helkafen/cabal,themoritz/cabal,martinvlk/cabal,themoritz/cabal,rimmington/cabal,beni55/cabal,Peaker/cabal,x-y-z/cabal,alphaHeavy/cabal,plumlife/cabal,randen/cabal,plow-technologies/cabal,valderman/cabal,seereason/cabal,sopvop/cabal,thomie/cabal,thomie/cabal,kolmodin/cabal,typelead/epm,ghc-android/cabal,plumlife/cabal,themoritz/cabal,corngood/cabal,triplepointfive/cabal,mydaum/cabal,mmakowski/cabal,edsko/cabal,lukexi/cabal,gridaphobe/cabal,beni55/cabal,anton-dessiatov/cabal,gridaphobe/cabal,mightybyte/cabal,fugyk/cabal,eric-stanley/cabal,enolan/cabal,thoughtpolice/cabal,randen/cabal,triplepointfive/cabal,alphaHeavy/cabal,kolmodin/cabal,enolan/cabal,plow-technologies/cabal,eric-stanley/cabal,Helkafen/cabal,ian-ross/cabal,kosmikus/cabal,valderman/cabal,mightybyte/cabal,typelead/epm,bennofs/cabal,corngood/cabal,gbaz/cabal,fpco/cabal,sopvop/cabal,trskop/cabal,trskop/cabal,kosmikus/cabal,ian-ross/cabal,Heather/cabal,Peaker/cabal,fpco/cabal,ghc-android/cabal,martinvlk/cabal,anton-dessiatov/cabal,edsko/cabal