diff options
Diffstat (limited to 'testsuite/tests/module')
-rw-r--r-- | testsuite/tests/module/all.T | 1 | ||||
-rw-r--r-- | testsuite/tests/module/mod185.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/module/mod185.stderr | 61 |
3 files changed, 67 insertions, 0 deletions
diff --git a/testsuite/tests/module/all.T b/testsuite/tests/module/all.T index 2a26edb6e1..b94e8f3d07 100644 --- a/testsuite/tests/module/all.T +++ b/testsuite/tests/module/all.T @@ -268,6 +268,7 @@ test('mod181', normal, compile, ['']) test('mod182', normal, compile_fail, ['']) test('mod183', normal, compile_fail, ['']) test('mod184', normal, compile, ['-Wprepositive-qualified-module']) +test('mod185', normal, compile, ['-ddump-parsed-ast']) test('T1148', normal, compile, ['']) test('T1074', normal, compile, ['']) diff --git a/testsuite/tests/module/mod185.hs b/testsuite/tests/module/mod185.hs new file mode 100644 index 0000000000..f1b9860b2e --- /dev/null +++ b/testsuite/tests/module/mod185.hs @@ -0,0 +1,5 @@ +{-# LANGUAGE ImportQualifiedPost #-} +-- The span of the import decl should include the 'qualified' keyword. +import Prelude qualified + +main = Prelude.undefined diff --git a/testsuite/tests/module/mod185.stderr b/testsuite/tests/module/mod185.stderr new file mode 100644 index 0000000000..33e8374ef6 --- /dev/null +++ b/testsuite/tests/module/mod185.stderr @@ -0,0 +1,61 @@ +==================== Parser AST ==================== + +({ mod185.hs:1:1 } + (HsModule + (Nothing) + (Nothing) + [({ mod185.hs:3:1-24 } + (ImportDecl + (NoExtField) + (NoSourceText) + ({ mod185.hs:3:8-14 } + {ModuleName: Prelude}) + (Nothing) + (False) + (False) + (QualifiedPost) + (False) + (Nothing) + (Nothing)))] + [({ mod185.hs:5:1-24 } + (ValD + (NoExtField) + (FunBind + (NoExtField) + ({ mod185.hs:5:1-4 } + (Unqual + {OccName: main})) + (MG + (NoExtField) + ({ mod185.hs:5:1-24 } + [({ mod185.hs:5:1-24 } + (Match + (NoExtField) + (FunRhs + ({ mod185.hs:5:1-4 } + (Unqual + {OccName: main})) + (Prefix) + (NoSrcStrict)) + [] + (GRHSs + (NoExtField) + [({ mod185.hs:5:6-24 } + (GRHS + (NoExtField) + [] + ({ mod185.hs:5:8-24 } + (HsVar + (NoExtField) + ({ mod185.hs:5:8-24 } + (Qual + {ModuleName: Prelude} + {OccName: undefined}))))))] + ({ <no location info> } + (EmptyLocalBinds + (NoExtField))))))]) + (FromSource)) + (WpHole) + [])))] + (Nothing) + (Nothing))) |