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 Warning: Can not find main in module Main. Thanks Ian