Commit 7831fe05 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot
Browse files

parser: Suggest ImportQualifiedPost in prepositive import warning

As suggested in #18545.
parent 25fdf25e
Pipeline #23356 passed with stages
in 372 minutes and 7 seconds
......@@ -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
......
mod184.hs:6:8: warning: [-Wprepositive-qualified-module]
Found ‘qualified’ in prepositive position
Suggested fix: place ‘qualified’ after the module name instead.
To allow this, enable language extension 'ImportQualifiedPost'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment