cvs commit: fptools/ghc/compiler/main DriverPhases.hs DriverPipeline.hs DriverUtil.hs Main.hs fptools/ghc/compiler/compMan CompManager.lhs

Simon Marlow simonmar@glass.cse.ogi.edu
Tue, 8 May 2001 03:58:49 -0700


simonmar    2001/05/08 03:58:49 PDT

  Modified files:
    ghc/compiler/main    DriverPhases.hs DriverPipeline.hs 
                         DriverUtil.hs Main.hs 
    ghc/compiler/compMan CompManager.lhs 
  Log:
  Add
  
  	DriverPhases.haskellish_src_suffix :: String -> Bool
  	DriverPhases.haskellish_src_file   :: String -> Bool
  
  which return True for suffixes of Haskell source files only.  The
  existing haskellish_suffix and haskellish_file return True also for
  .raw_s and .hc files.
  
  We use these instead of haskellish_file in Main.main when deciding
  whether to preprocess a file.
  
  Fixes: compilation of .raw_s files, and potential bugs with
  compilation of .hc files.
  
  Revision  Changes    Path
  1.9       +9 -6      fptools/ghc/compiler/main/DriverPhases.hs
  1.66      +6 -4      fptools/ghc/compiler/main/DriverPipeline.hs
  1.21      +4 -1      fptools/ghc/compiler/main/DriverUtil.hs
  1.64      +4 -4      fptools/ghc/compiler/main/Main.hs
  1.73      +1 -1      fptools/ghc/compiler/compMan/CompManager.lhs