coe sometimes gets stuck on a Clo #11

Closed
opened 2023-06-05 10:54:20 -04:00 by rhi · 0 comments
Owner

sometimes a term looks like

coe (i ⇒ caseω tag return ★ of { 'just ⇒ A; 'nothing ⇒ True }) payload

where i is unused in the path, so it should just reduce to just

payload ∷ (caseω tag ⋯)

right? well, it doesn't if the case expression actually has a delayed subst somewhere that still mentions i. (this is why the pretty printer includes it, btw.) so just checking for a mention anywhere in ST is not enough.

sometimes a term looks like ``` coe (i ⇒ caseω tag return ★ of { 'just ⇒ A; 'nothing ⇒ True }) payload ``` where `i` is unused in the path, so it should just reduce to just ``` payload ∷ (caseω tag ⋯) ``` right? well, it doesn't if the case expression _actually_ has a delayed subst somewhere that still mentions `i`. (this is why the pretty printer includes it, btw.) so just checking for a mention anywhere in `ST` is not enough.
rhi added the
bug
label 2023-06-11 12:58:39 -04:00
rhi referenced this issue from a commit 2023-07-16 21:50:57 -04:00
rhi closed this issue 2023-07-16 21:50:57 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rhi/quox#11
No description provided.