On 4 February 2011 05:03, Michael Snoyman <mich...@snoyman.com> wrote: > My guess (a complete guess) is that the deliterate step is creating a > temporary .hs file elsewhere on your filesystem, which is why the CPP > step can't find B.hs without a fully-qualified path.
That is what is happening (you can confirm with "ghc -v"). Interestingly, you can work around by compiling with -I. on the command line: {{{ mbolingbroke@equinox ~/Junk/lhscpp $ cat Test.lhs Included.h > {-# LANGUAGE CPP #-} > module Main (main) where #include "MachDeps.h" #include "Included.h" > main :: IO () > main = print MY_CONSTANT #define MY_CONSTANT 2 mbolingbroke@equinox ~/Junk/lhscpp $ ./Test 2 }}} Perhaps worth filing a bug report? Cheers Max _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users