on master help sign in
Check for cmdMap and subMap during canonicalization
a65cc75Evan Czaplicki
src/Canonicalize/Effects.hs+8−2
@@ -58,15 +58,21 @@ canonicalize env decls unions effects =
58 <*>
58 <*>
59 case manager of
59 case manager of
60 Valid.Cmd cmdType ->
60 Valid.Cmd cmdType ->
61+ Can.Cmd
61− Can.Cmd <$> verifyEffectType cmdType unions
62+ <$> verifyEffectType cmdType unions
63+ <* verifyManager region dict "cmdMap"
62
64
63 Valid.Sub subType ->
65 Valid.Sub subType ->
66+ Can.Sub
64− Can.Sub <$> verifyEffectType subType unions
67+ <$> verifyEffectType subType unions
68+ <* verifyManager region dict "subMap"
65
69
66 Valid.Fx cmdType subType ->
70 Valid.Fx cmdType subType ->
67 Can.Fx
71 Can.Fx
68 <$> verifyEffectType cmdType unions
72 <$> verifyEffectType cmdType unions
69 <*> verifyEffectType subType unions
73 <*> verifyEffectType subType unions
74+ <* verifyManager region dict "cmdMap"
75+ <* verifyManager region dict "subMap"
70
76
71
77
72
78