koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.16k stars 151 forks source link

fix recursive effects #483 #560

Open TimWhiting opened 1 week ago

TimWhiting commented 1 week ago

Fixes #483

DataInfo is requested to get dataEffect in kind inference, to make a handled effect type with the correct linearity / named information.

However, for recursive effect type declarations we don't have the dataInfo yet for the type in the definition since we are in the process of inferring it. So we need to add the dataEffects for the mutually recursive type definition group prior to inferring them. This makes that change.