categorifier icon indicating copy to clipboard operation
categorifier copied to clipboard

simplify unsupported interpretations

Open zliu41 opened this issue 3 years ago • 0 comments

In Categorifier, we may try to interpret / @(Native Double) to a category that doesn't support the Native newtype. This will fail, but if we catch that, we can specalize and inline / so that it ends up using the underlying / @Double, which is supported.

However, if we blindly catch and inline any interpretation that fails, we can easily find ourselves in a loop rather than reporting a real error. This needs to be handled delicately to avoid loops.

(Extricated from https://kitty-hawk.atlassian.net/browse/SW-3106)

zliu41 avatar Apr 15 '22 20:04 zliu41