diff --git a/compiler/hsSyn/HsDecls.lhs b/compiler/hsSyn/HsDecls.lhs
index bac9ec6..aaf627c 100644
|
a
|
b
|
|
| 789 | 789 | |
| 790 | 790 | pprConDecl (ConDecl { con_name = con, con_explicit = expl, con_qvars = tvs |
| 791 | 791 | , con_cxt = cxt, con_details = PrefixCon arg_tys |
| 792 | | , con_res = ResTyGADT res_ty }) |
| 793 | | = ppr con <+> dcolon <+> |
| | 792 | , con_res = ResTyGADT res_ty, con_doc = doc }) |
| | 793 | = maybe empty ppr doc <+> ppr con <+> dcolon <+> |
| 794 | 794 | sep [pprHsForAll expl tvs cxt, ppr (foldr mk_fun_ty res_ty arg_tys)] |
| 795 | 795 | where |
| 796 | 796 | mk_fun_ty a b = noLoc (HsFunTy a b) |
diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp
index a4c08c1..937863c 100644
|
a
|
b
|
|
| 1191 | 1191 | -- Datatype declarations |
| 1192 | 1192 | |
| 1193 | 1193 | gadt_constrlist :: { Located [LConDecl RdrName] } -- Returned in order |
| 1194 | | : 'where' '{' gadt_constrs '}' { L (comb2 $1 $3) (unLoc $3) } |
| 1195 | | | 'where' vocurly gadt_constrs close { L (comb2 $1 $3) (unLoc $3) } |
| | 1194 | : 'where' '{' maybe_docnext gadt_constrs '}' |
| | 1195 | { L (comb2 $1 $5) (addConDocFirst (unLoc $4) $3) } |
| | 1196 | | 'where' vocurly maybe_docnext optSemi gadt_constrs close |
| | 1197 | { L (comb2 $1 $5) (addConDocFirst (unLoc $5) $3) } |
| 1196 | 1198 | | {- empty -} { noLoc [] } |
| 1197 | 1199 | |
| 1198 | 1200 | gadt_constrs :: { Located [LConDecl RdrName] } |
| 1199 | | : gadt_constr ';' gadt_constrs { L (comb2 (head $1) $3) ($1 ++ unLoc $3) } |
| 1200 | | | gadt_constr { L (getLoc (head $1)) $1 } |
| | 1201 | : gadt_constr ';' maybe_docprev optSemi maybe_docnext optSemi gadt_constrs |
| | 1202 | { L (comb2 (head $1) $7) (addConDocs $1 $3 ++ addConDocFirst (unLoc $7) $5) } |
| | 1203 | | gadt_constr maybe_docprev { L (getLoc (head $1)) $ addConDocFirst $1 $2 } |
| 1201 | 1204 | | {- empty -} { noLoc [] } |
| 1202 | 1205 | |
| 1203 | 1206 | -- We allow the following forms: |
diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk
index b39b41a..50558f4 100644
|
a
|
b
|
|
| 21 | 21 | ifneq "$$(BootingFromHc)" "YES" |
| 22 | 22 | |
| 23 | 23 | $1/$2/build/%.hs : $1/$4/%.ly | $$$$(dir $$$$@)/. |
| 24 | | $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@ |
| | 24 | $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@ --info=$$@.i |
| 25 | 25 | |
| 26 | 26 | $1/$2/build/%.hs : $1/$4/%.y | $$$$(dir $$$$@)/. |
| 27 | | $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@ |
| | 27 | $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@ --info=$$@.i |
| 28 | 28 | |
| 29 | 29 | $1/$2/build/%.hs : $1/$4/%.x | $$$$(dir $$$$@)/. |
| 30 | 30 | $$(call cmd,ALEX) $$($1_$2_$3_ALL_ALEX_OPTS) $$< -o $$@ |