[project @ 2005-05-17 07:49:47 by simonmar]
[ghc-hetmet.git] / ghc / compiler / main / Main.hs
index 422cfc9..0e9711f 100644 (file)
@@ -372,7 +372,8 @@ doMake sess []    = throwDyn (UsageError "no input files")
 doMake sess srcs  = do 
     let (hs_srcs, non_hs_srcs) = partition haskellish srcs
 
-       haskellish (f,Nothing) = looksLikeModuleName f || isHaskellSrcFilename f
+       haskellish (f,Nothing) = 
+         looksLikeModuleName f || isHaskellSrcFilename f || '.' `notElem` f
        haskellish (f,Just phase) = 
          phase `notElem` [As, Cc, CmmCpp, Cmm, StopLn]