Commit 04a63774 authored by simonmar's avatar simonmar
Browse files

[project @ 2002-10-24 13:08:35 by simonmar]

In --make mode, consider everything that doesn't contain a '.' to be a
compilation manager input.  This fixes cases like

  ghc --make test37

where test37.hs exists.  I broke this in the previous commit, causing
a number of tests to break.
parent b866a9bc
{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-}
-----------------------------------------------------------------------------
-- $Id: Main.hs,v 1.112 2002/10/15 13:20:18 simonmar Exp $
-- $Id: Main.hs,v 1.113 2002/10/24 13:08:35 simonmar Exp $
--
-- GHC Driver program
--
......@@ -326,7 +326,7 @@ beginMake fileish_args = do
when (failed ok_flag) (exitWith (ExitFailure 1))
return ()
where
looks_like_an_input m = haskellish_src_file m || looksLikeModuleName m
looks_like_an_input m = haskellish_src_file m || '.' `notElem` m
beginInteractive :: [String] -> IO ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment