
23 Oct
2002
23 Oct
'02
12:31 p.m.
"Claus Reinke"
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