diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-08-10 10:17:02 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-08-13 03:44:17 -0400 |
commit | 7831fe05021caa90d4696ca91ae2b31a82e65b3d (patch) | |
tree | 05ffe0be6a8e0c2e4d3bf75f9700ef111ee2c4f1 /compiler | |
parent | 25fdf25eb574d6d291673603ab36ac5ec7e37066 (diff) | |
download | haskell-7831fe05021caa90d4696ca91ae2b31a82e65b3d.tar.gz |
parser: Suggest ImportQualifiedPost in prepositive import warning
As suggested in #18545.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Parser/PostProcess.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Parser/PostProcess.hs b/compiler/GHC/Parser/PostProcess.hs index c86d1f69c6..ecf31c01ea 100644 --- a/compiler/GHC/Parser/PostProcess.hs +++ b/compiler/GHC/Parser/PostProcess.hs @@ -2612,6 +2612,7 @@ warnPrepositiveQualifiedModule span = <+> text "in prepositive position" $$ text "Suggested fix: place " <+> quotes (text "qualified") <+> text "after the module name instead." + $$ text "To allow this, enable language extension 'ImportQualifiedPost'" failOpNotEnabledImportQualifiedPost :: SrcSpan -> P () failOpNotEnabledImportQualifiedPost loc = addError loc msg |