
Hi
Preprocessing library Foo-0.1... setup: trhxs not found, cannot process: Foo.xhs
Hmm, I built a minimal project (attached), and it didn't work. Am I doing something wrong? I'm using a freshly compiled Cabal and GHC 6.4.2
Yes. My suggestion was incomplete. I think the right way to do this is (when using Simple): * hook configure-step a bit: You should be able to simply append your program description into ConfigFlags.configPrograms and call the default hook. * that will append it into LocalBuildInfo.withPrograms * add the preprocessor to userhooks, but rather than finding executable at that point, take it from LocalBuildInfo.withPrograms
That seems much better, once I have this preprocessor working basically, I'll try and follow that pattern. Thanks Neil