> buzzard(150)% cat Two-part.hs > main = return () > buzzard(151)% ghc --make Two-part.hs > ghc-5.04.2: chasing modules from: Two-part.hs > Compiling Main ( Two-part.hs, ./Two-part.o ) > ghc: linking ... > buzzard(152)% ghc --make Two-part > ghc-5.04.2: no input files > Usage: For basic information, try the `--help' option. > > GHC usually has no problem when I leave off the ".hs" extension. Why > should it matter that there's a '-' in the file name?
This will be fixed in 5.04.3. The compiler has to figure out which arguments refer to source files, and which are object files or libraries. Traditionally the way this is done is to recognise sources rather than objects/libraries, so that we don't have to know the full range of file types that the linker accepts. So, the rule is that anything which looks like a module name, or has a .hs or .lhs extension, or doesn't contain a dot at all is assumed to refer to a source (things without dots are assumed to be filenames without the .hs or .lhs extension). Cheers, Simon _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs