X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverPhases.hs;h=8d67ae0760b0b23d126c55b8dff4c9b3068975c0;hb=536e2a029dcc11c33c9448146b34513c682f17ad;hp=14cf635af732f714c02d230e404f1774ec636556;hpb=1c169ab6d2d90c8a84abbbdf493021e562a13229;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverPhases.hs b/ghc/compiler/main/DriverPhases.hs index 14cf635..8d67ae0 100644 --- a/ghc/compiler/main/DriverPhases.hs +++ b/ghc/compiler/main/DriverPhases.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverPhases.hs,v 1.26 2003/06/05 10:11:22 simonmar Exp $ +-- $Id: DriverPhases.hs,v 1.27 2003/06/26 21:55:47 sof Exp $ -- -- GHC Driver -- @@ -20,6 +20,7 @@ module DriverPhases ( objish_file, objish_suffix, cish_file, cish_suffix, isExtCore_file, extcoreish_suffix, + haskellish_user_src_file, isSourceFile -- :: FilePath -> Bool ) where @@ -106,10 +107,11 @@ phaseInputExt Ilx2Il = "ilx" phaseInputExt Ilasm = "il" #endif -haskellish_suffix = (`elem` [ "hs", "lhs", "hspp", "hscpp", "hcr", "hc", "raw_s" ]) -haskellish_src_suffix = (`elem` [ "hs", "lhs", "hspp", "hscpp", "hcr"]) -cish_suffix = (`elem` [ "c", "cpp", "C", "cc", "cxx", "s", "S" ]) -extcoreish_suffix = (`elem` [ "hcr" ]) +haskellish_suffix = (`elem` [ "hs", "lhs", "hspp", "hscpp", "hcr", "hc", "raw_s" ]) +haskellish_src_suffix = (`elem` [ "hs", "lhs", "hspp", "hscpp", "hcr"]) +cish_suffix = (`elem` [ "c", "cpp", "C", "cc", "cxx", "s", "S" ]) +extcoreish_suffix = (`elem` [ "hcr" ]) +haskellish_user_src_suffix = (`elem` [ "hs", "lhs" ]) -- Use the appropriate suffix for the system on which -- the GHC-compiled code will run @@ -119,11 +121,12 @@ objish_suffix = (`elem` [ "o", "O", "obj", "OBJ" ]) objish_suffix = (`elem` [ "o" ]) #endif -haskellish_file = haskellish_suffix . getFileSuffix -haskellish_src_file = haskellish_src_suffix . getFileSuffix -cish_file = cish_suffix . getFileSuffix -isExtCore_file = extcoreish_suffix . getFileSuffix -objish_file = objish_suffix . getFileSuffix +haskellish_file = haskellish_suffix . getFileSuffix +haskellish_src_file = haskellish_src_suffix . getFileSuffix +cish_file = cish_suffix . getFileSuffix +isExtCore_file = extcoreish_suffix . getFileSuffix +objish_file = objish_suffix . getFileSuffix +haskellish_user_src_file = haskellish_user_src_suffix . getFileSuffix isSourceFile :: FilePath -> Bool isSourceFile f =