Martin Norb�ck <[EMAIL PROTECTED]> writes:
> So I want to redirect the output with -odir OUTPUT_DIR
>
> However it won't work since ghc wll put the compilation output of both
> modules in OUTPUT_DIR/Module.o and subsequently fail to link.
You could use a recent version of hmake, with the -d OUTPUT_DIR
option. This will place .o files in directories corresponding to
their hierarchical names.
e.g.
hmake -ghc Main -i. -d OUTPUT_DIR
generates
OUTPUT_DIR/Main.o
OUTPUT_DIR/Bar/Module.o
OUTPUT_DIR/Foo/Module.o
and links them to a final executable ./Main.
Regards,
Malcolm
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users