summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/T16270h.hs
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2019-02-16 03:38:21 +0300
committerVladislav Zavialov <vlad.z.4096@gmail.com>2019-02-16 13:32:03 +0300
commit60eb2fba1d31ca3bb1dea34c019c42db5340cb44 (patch)
treeeaf29330ee272a90b7f2ed9a8eb4dbf1284e9a17 /testsuite/tests/parser/should_fail/T16270h.hs
parent5544f6082d6e15d305b83f27f4daa29576d3666e (diff)
downloadhaskell-wip/parse-errors.tar.gz
Fix warnings and fatal parsing errorswip/parse-errors
Diffstat (limited to 'testsuite/tests/parser/should_fail/T16270h.hs')
-rw-r--r--testsuite/tests/parser/should_fail/T16270h.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T16270h.hs b/testsuite/tests/parser/should_fail/T16270h.hs
new file mode 100644
index 0000000000..c44d6edba5
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/T16270h.hs
@@ -0,0 +1,13 @@
+-- We can't test module header parsing errors using the same file as other
+-- parsing errors (in ../T16270.hs) because HeaderInfo.getImports fails fast
+-- on parsing imports:
+--
+-- if errorsFound dflags ms
+-- then throwIO $ mkSrcErr errs
+--
+module T16270h (type G) where
+
+import "pkg?" M
+import "pkg!" M
+
+data G a