[nhc-bugs] hmake builds the wrong thing
Ian Lynagh
igloo@earth.li
Mon, 17 Dec 2001 12:16:03 +0000
On Mon, Dec 17, 2001 at 11:46:05AM +0000, Malcolm Wallace wrote:
> > This one had me puzzled for a few seconds before I spotted what was
> > going on!
> >
> > $ rm foo*; touch foo.hs foo.lhs; hmake foo.lhs
> > nhc98 -c -o foo.o foo.hs
>
> In any case, you can change hmake to prefer a .lhs over a .hs
> with the following patch.
Clearly one must be preferred if you type "hmake foo", but when an
extension is explicitly given hmake should compile that file.
Thanks
Ian