mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 04:43:18 +03:00
d59d02ccb7
* Closes #2763. * Fixes a bug in the scoper, likely introduced in https://github.com/anoma/juvix/pull/2468 by making later declarations depend on earlier ones. The problem was that the inductive modules were always added at the beginning of a section, which resulted in an incorrect definition dependency graph (an inductive type depended on its associated projections). * Now inductive modules are added just after a group of inductive definitions, before the next function definition. This implies that inductive type definitions which depend on each other cannot be separated by function definitions. Existing Juvix code needs to be adjusted. * The behaviour is now equivalent to "manually" inserting module declarations with projections after each group of inductive definitions. |
||
---|---|---|
.. | ||
Eval | ||
Eval.hs |