Commit 34085b50 authored by adityadivekar's avatar adityadivekar Committed by thomie
Browse files

Correct the message displayed for syntax error (#12146)

parent 9858552d
......@@ -2114,8 +2114,8 @@ add gp loc (SpliceD splice@(SpliceDecl _ flag)) ds
; return (gp, Just (splice, ds)) }
where
badImplicitSplice = text "Parse error: naked expression at top level"
$$ text "Perhaps you intended to use TemplateHaskell"
badImplicitSplice = text "Parse error: module header, import declaration"
$$ text "or top-level declaration expected."
-- Class declarations: pull out the fixity signatures to the top
add gp@(HsGroup {hs_tyclds = ts, hs_fixds = fs}) l (TyClD d) ds
......
T1914A.hs:1:38:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Parse error: module header, import declaration
or top-level declaration expected.
T6106.hs:1:1:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Parse error: module header, import declaration
or top-level declaration expected.
T4042.hs:6:1:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Parse error: module header, import declaration
or top-level declaration expected.
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