ghc --make -odir x -hidir x chooses strange location for x
Malcolm Wallace
Malcolm.Wallace@cs.york.ac.uk
Wed, 23 Oct 2002 13:31:19 +0100
"Claus Reinke" <claus.reinke@talk21.com> writes:
> 3) shouldn't there be a way of telling ghc --make about ways
> to generate the .hs/.lhs files it is looking for (aka suffix rules)?
>
> The standard examples are happy, cpp, drift, ..
If you are willing to switch from ghc --make to hmake, you get various
common suffix rules for free.
.y -> Happy
.ly -> literate Happy
.hs.cpp -> cpp
.gc -> GreenCard
.hsc -> hsc2hs
.chs -> c2hs
It is also relatively straightforward to add more pre-processing
rules of this nature to the hmake sources. For example, do you have
a suggestion for a DrIFT suffix?
Regards,
Malcolm