This repository was archived by the owner on Aug 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ synifyTyCon coax tc
239
239
-- That seems like an acceptable compromise (they'll just be documented
240
240
-- in prefix position), since, otherwise, the logic (at best) gets much more
241
241
-- complicated. (would use dataConIsInfix.)
242
- use_gadt_syntax = any ( not . isVanillaDataCon) (tyConDataCons tc)
242
+ use_gadt_syntax = isGadtSyntaxTyCon tc
243
243
consRaw = map (synifyDataCon use_gadt_syntax) (tyConDataCons tc)
244
244
cons = rights consRaw
245
245
-- "deriving" doesn't affect the signature, no need to specify any.
@@ -338,7 +338,7 @@ synifyDataCon use_gadt_syntax dc =
338
338
then return $ noLoc $
339
339
ConDeclGADT { con_g_ext = noExt
340
340
, con_names = [name]
341
- , con_forall = noLoc True
341
+ , con_forall = noLoc False
342
342
, con_qvars = synifyTyVars (univ_tvs ++ ex_tvs)
343
343
, con_mb_cxt = Just ctx
344
344
, con_args = hat
@@ -347,7 +347,7 @@ synifyDataCon use_gadt_syntax dc =
347
347
else return $ noLoc $
348
348
ConDeclH98 { con_ext = noExt
349
349
, con_name = name
350
- , con_forall = noLoc True
350
+ , con_forall = noLoc False
351
351
, con_ex_tvs = map synifyTyVar ex_tvs
352
352
, con_mb_cxt = Just ctx
353
353
, con_args = hat
You can’t perform that action at this time.
0 commit comments