@@ -98,8 +98,8 @@ expandSugar dsl (PDoBlock ds)
98 block b (DoBind fc n nfc tm : rest)
98 block b (DoBind fc n nfc tm : rest)
99 = PApp fc b [pexp tm, pexp (PLam fc n nfc Placeholder (block b rest))]
99 = PApp fc b [pexp tm, pexp (PLam fc n nfc Placeholder (block b rest))]
100 block b (DoBindP fc p tm alts : rest)
100 block b (DoBindP fc p tm alts : rest)
101− = PApp fc b [pexp tm, pexp (PLam fc (sMN 0 "bpat") NoFC Placeholder
101+ = PApp fc b [pexp tm, pexp (PLam fc (sMN 0 "__bpat") NoFC Placeholder
102− (PCase fc (PRef fc [] (sMN 0 "bpat"))
102+ (PCase fc (PRef fc [] (sMN 0 "__bpat"))
103 ((p, block b rest) : alts)))]
103 ((p, block b rest) : alts)))]
104 block b (DoLet fc n nfc ty tm : rest)
104 block b (DoLet fc n nfc ty tm : rest)
105 = PLet fc n nfc ty tm (block b rest)
105 = PLet fc n nfc ty tm (block b rest)
@@ -108,7 +108,7 @@ expandSugar dsl (PDoBlock ds)
108 block b (DoExp fc tm : rest)
108 block b (DoExp fc tm : rest)
109 = PApp fc b
109 = PApp fc b
110 [pexp tm,
110 [pexp tm,
111− pexp (PLam fc (sMN 0 "bindx") NoFC (mkTy tm) (block b rest))]
111+ pexp (PLam fc (sMN 0 "__bindx") NoFC (mkTy tm) (block b rest))]
112 where mkTy (PCase _ _ _) = PRef fc [] unitTy
112 where mkTy (PCase _ _ _) = PRef fc [] unitTy
113 mkTy (PMetavar _ _) = PRef fc [] unitTy
113 mkTy (PMetavar _ _) = PRef fc [] unitTy
114 mkTy _ = Placeholder
114 mkTy _ = Placeholder