diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-04-01 19:22:28 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-04-01 19:22:54 +0200 |
commit | 7cec6c7b2973b34c18da1c74c87cead33bb1bfd7 (patch) | |
tree | be99face836f135e843f758ff9eab09b6f122f93 /compiler/main/DriverPhases.hs | |
parent | d4cf7051bc17182238b17ba1dc42e190fa5c6f0d (diff) | |
download | haskell-7cec6c7b2973b34c18da1c74c87cead33bb1bfd7.tar.gz |
Change which files --make thinks are 'Haskellish' (#10220)
`.hspp` and `.hscpp` are haskell files that have already been preprocessed.
Treat `.hspp` and `.hscpp` as Haskellish sources again, as they were before
commit a10e1990. This way, ghc --make will load their imports.
Make sure that `.cmm` and `.cmmcpp` are still not treated as Haskellish,
by moving them out of `haskell_src_suffixes` (but still keeping them in
haskellish_suffixes, though I'm not sure what the purpose of that group
is).
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D778
Diffstat (limited to 'compiler/main/DriverPhases.hs')
-rw-r--r-- | compiler/main/DriverPhases.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs index e3aaf698e0..9d1199339a 100644 --- a/compiler/main/DriverPhases.hs +++ b/compiler/main/DriverPhases.hs @@ -279,11 +279,14 @@ phaseInputExt StopLn = "o" haskellish_src_suffixes, haskellish_suffixes, cish_suffixes, haskellish_user_src_suffixes, haskellish_sig_suffixes :: [String] +-- When a file with an extension in the haskellish_src_suffixes group is +-- loaded in --make mode, its imports will be loaded too. haskellish_src_suffixes = haskellish_user_src_suffixes ++ - [ "hspp", "hscpp", "cmm", "cmmcpp" ] + [ "hspp", "hscpp" ] haskellish_suffixes = haskellish_src_suffixes ++ - [ "hc" ] + [ "hc", "cmm", "cmmcpp" ] cish_suffixes = [ "c", "cpp", "C", "cc", "cxx", "s", "S", "ll", "bc", "lm_s", "m", "M", "mm" ] + -- Will not be deleted as temp files: haskellish_user_src_suffixes = haskellish_sig_suffixes ++ [ "hs", "lhs", "hs-boot", "lhs-boot" ] |