Skip to content

Add debug information for arrows.#50

Merged
jonascarpay merged 1 commit intojonascarpay:masterfrom
kindaro:feature-debug-arrows
Apr 23, 2025
Merged

Add debug information for arrows.#50
jonascarpay merged 1 commit intojonascarpay:masterfrom
kindaro:feature-debug-arrows

Conversation

@kindaro
Copy link
Collaborator

@kindaro kindaro commented Apr 21, 2025

Closes #44.

@kindaro
Copy link
Collaborator Author

kindaro commented Apr 21, 2025

Example output on Test.LexTree:

Test.LexTree (test/Test/LexTree.hs)
    check (ValueDecl, 120:1)
    checkBalance (ValueDecl, 135:1)
    checkBounds (ValueDecl, 96:1)
        f (ValueDecl, 98:5)
    checkHeight (ValueDecl, 123:1)
        go (ValueDecl, 125:5)
            h' (ValueDecl, 130:11)
    foldLexTreeM (ValueDecl, 114:1)
    lookupStack (ValueDecl, 148:1)
        f (ValueDecl, 150:5)
    range (ValueDecl, 145:1)
    spec (ValueDecl, 55:1)
        f (ValueDecl, 80:11)
check ---> checkBalance
check ---> checkBounds
check ---> checkHeight
checkBounds ---> f
checkBounds ---> foldLexTreeM
checkHeight ---> go
go ---> h'
lookupStack ---> f
spec ---> check
spec ---> checkBalance
spec ---> checkBounds
spec ---> checkHeight
spec ---> f
spec ---> lookupStack

@kindaro kindaro requested a review from jonascarpay April 22, 2025 18:39
Copy link
Owner

@jonascarpay jonascarpay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jonascarpay jonascarpay merged commit 9921ca8 into jonascarpay:master Apr 23, 2025
40 checks passed
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.

Let final debug output also print edges?

2 participants