Add detailed error message for unsupported casing on Integer#7766
Conversation
zliu41
commented
May 4, 2026
There was a problem hiding this comment.
Nice error message!
Its peculiar that with GHC 9.6 we have 1 golden file change (caseInt) and with 9.12 we have two (caseInt, rangeEnumFromThenTo).
It turns out that:
- Plugin tries to detect if a symbol has to do with the
enumFromToor other functions from this family:
https://github.com/IntersectMBO/plutus/blob/master/plutus-tx-plugin/src/PlutusTx/Compiler/Expr.hs#L365 - This detection stopped working in GHC 9.12 - I suspect they moved symbols like
rangeEnumFromThenToto another namespace, likeGHC.Internal.Enuminstead ofGHC.Enum.
It would be nice if you can fix this regression in this PR since its touching the corresponding test.
Neither is accurate. The plugin does try to detect |
I think it does: in this PR the golden file |