[project @ 2001-05-08 10:58:48 by simonmar]
authorsimonmar <unknown>
Tue, 8 May 2001 10:58:48 +0000 (10:58 +0000)
committersimonmar <unknown>
Tue, 8 May 2001 10:58:48 +0000 (10:58 +0000)
commitb8b47abe336d17ae5354a9bb15c44564b51c97ef
tree63e56444d4d5c45a43478e61b48604af72f19fdf
parentdc673bca305b43342b864445539b49c353dd6a10
[project @ 2001-05-08 10:58:48 by simonmar]
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.
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/main/DriverPhases.hs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DriverUtil.hs
ghc/compiler/main/Main.hs