Skip to content

Conversation

@janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Oct 21, 2025

This PR fixes several bugs - mostly involving mismatches in “serialized” types. To make debugging easier, it changes the signature of the resource-logic function: it is now monadic, maintains a stack trace, and returns a descriptive error instead of simply false on failure.

I also fixed the monadic version of the check macro, which was not working correctly. I had to rename it to docheck to avoid conflicts with the term-level check.

Finally, I added a rather hacky mechanism, mydefaultM, to report the location of logic-function errors even when there is no explicit failwith clause. We should keep this for now but plan to remove it later.

I've also added a tiny example - a program with a single constructor call - that runs on CI.

@janmasrovira janmasrovira self-assigned this Oct 30, 2025
@janmasrovira janmasrovira marked this pull request as ready for review October 30, 2025 11:21
@janmasrovira janmasrovira requested a review from lukaszcz October 31, 2025 12:13
@janmasrovira janmasrovira merged commit 7ea9317 into main Nov 4, 2025
1 check passed
@janmasrovira janmasrovira deleted the debug branch November 4, 2025 16:02
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