ghc --make -odir x -hidir x chooses strange location for x

Malcolm Wallace
Wed, 23 Oct 2002 13:31:19 +0100

"Claus Reinke" <> 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?