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 /testsuite/tests | |
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 'testsuite/tests')
-rw-r--r-- | testsuite/tests/driver/T10220.hspp | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T10220B.hs | 1 | ||||
-rw-r--r-- | testsuite/tests/driver/all.T | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T10220.hspp b/testsuite/tests/driver/T10220.hspp new file mode 100644 index 0000000000..9dd6b0d39a --- /dev/null +++ b/testsuite/tests/driver/T10220.hspp @@ -0,0 +1,2 @@ +module T10220 where +import T10220B diff --git a/testsuite/tests/driver/T10220B.hs b/testsuite/tests/driver/T10220B.hs new file mode 100644 index 0000000000..fce109b203 --- /dev/null +++ b/testsuite/tests/driver/T10220B.hs @@ -0,0 +1 @@ +module T10220B where diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index e1665f1aca..32678d3d27 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -427,3 +427,7 @@ test('T10219', normal, run_command, # `-x hspp` in make mode should work. # Note: need to specify `-x hspp` before the filename. ['{compiler} --make -x hspp T10219.hspp -fno-code -v0']) + +test('T10220', normal, run_command, + # Preprocessed T10220.hspp imports T10220B. Should work in --make mode. + ['{compiler} --make T10220.hspp -fno-code -v0']) |