Skip to content

Conversation

@bezirg
Copy link
Contributor

@bezirg bezirg commented Nov 19, 2025

This does not affect UPLC code, which should be already short-circuiting. This is about Haskell offchain code that uses the PlutusTx library. The PR provides a simple unit test.

@bezirg bezirg force-pushed the bezirg/short-circuit-haskell branch from 4c314e2 to ddb2a4d Compare November 19, 2025 09:16
@bezirg bezirg requested review from SeungheonOh and Unisay November 19, 2025 09:18
@bezirg bezirg force-pushed the bezirg/short-circuit-haskell branch from ddb2a4d to 7549152 Compare November 19, 2025 10:30
@bezirg
Copy link
Contributor Author

bezirg commented Nov 19, 2025

Can somebody explain to me why this change affects the uplc code generation? See the failing tests

@SeungheonOh
Copy link
Collaborator

It's probably because GHC changing up something because arguments being lazy. I'll take a look today

@SeungheonOh
Copy link
Collaborator

Okay, none of the tests actually fails, just the golden files need to be updated. Interestingly, this change makes script inline the definitions of equality in multiple places, making it less efficient. I doubt there's anything we can do to actually fix it because at plugin level we don't have enough control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants