summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorAditya <adityadivekar03@gmail.com>2016-07-09 11:38:38 +0530
committerBen Gamari <ben@smart-cactus.org>2018-08-17 14:53:51 -0400
commit1bbb5fa2f7c5eeb46afbba3301df68cccc8be6a3 (patch)
treeba3f4df71d114d50684c20c09a4067cbc81f2b68 /compiler
parent8154faf5a7236f27e0eb3409bb45c3f3c52320e7 (diff)
downloadhaskell-1bbb5fa2f7c5eeb46afbba3301df68cccc8be6a3.tar.gz
Add comment explaining change in syntax error suggestion for #12146.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rename/RnSource.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rename/RnSource.hs b/compiler/rename/RnSource.hs
index beb7c5b705..596852031a 100644
--- a/compiler/rename/RnSource.hs
+++ b/compiler/rename/RnSource.hs
@@ -2206,6 +2206,10 @@ add gp loc (SpliceD _ splice@(SpliceDecl _ _ flag)) ds
where
badImplicitSplice = text "Parse error: module header, import declaration"
$$ text "or top-level declaration expected."
+ -- The compiler should suggest the above, and not using
+ -- TemplateHaskell since the former suggestion is more
+ -- relevant to the larger base of users.
+ -- See Trac #12146 for discussion.
-- Class declarations: pull out the fixity signatures to the top
add gp@(HsGroup {hs_tyclds = ts, hs_fixds = fs}) l (TyClD _ d) ds