summaryrefslogtreecommitdiff
path: root/compiler/parser/Parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser/Parser.y')
-rw-r--r--compiler/parser/Parser.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y
index 7d903f64d8..477ef88f12 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -2949,9 +2949,9 @@ tyvarop : '`' tyvarid '`' {% ams (sLL $1 $> (unLoc $2))
[mj AnnBackquote $1,mj AnnVal $2
,mj AnnBackquote $3] }
| '.' {% parseErrorSDoc (getLoc $1)
- (vcat [ptext (sLit "Illegal symbol '.' in type"),
- ptext (sLit "Perhaps you intended to use RankNTypes or a similar language"),
- ptext (sLit "extension to enable explicit-forall syntax: forall <tvs>. <type>")])
+ (vcat [text "Illegal symbol '.' in type",
+ text "Perhaps you intended to use RankNTypes or a similar language",
+ text "extension to enable explicit-forall syntax: forall <tvs>. <type>"])
}
tyvarid :: { Located RdrName }