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.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y
index c2dae02afc..087474f9af 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -2086,9 +2086,9 @@ inst_type :: { LHsSigType GhcPs }
: sigtype { mkLHsSigType $1 }
deriv_types :: { [LHsSigType GhcPs] }
- : typedoc { [mkLHsSigType $1] }
+ : ktypedoc { [mkLHsSigType $1] }
- | typedoc ',' deriv_types {% addAnnotation (gl $1) AnnComma (gl $2)
+ | ktypedoc ',' deriv_types {% addAnnotation (gl $1) AnnComma (gl $2)
>> return (mkLHsSigType $1 : $3) }
comma_types0 :: { [LHsType GhcPs] } -- Zero or more: ty,ty,ty