Skip to content

Look through newtypes for instance mthd argument#248

Closed
alt-romes wants to merge 3 commits intomasterfrom
wip/romes/234b
Closed

Look through newtypes for instance mthd argument#248
alt-romes wants to merge 3 commits intomasterfrom
wip/romes/234b

Conversation

@alt-romes
Copy link
Copy Markdown
Collaborator

@alt-romes alt-romes commented Mar 30, 2026

If we find a DebugView instance at runtime, we want to apply it to some
(possibly foreign) heap value. Previously, we forgot to look through
newtypes when searching for the argument to the instance methods.

Fixes #234

(Plus a few tests)

If we find a DebugView instance at runtime, we want to apply it to some
(possibly foreign) heap value. Previously, we forgot to look through
newtypes when searching for the argument to the instance methods.

Fixes #234
This is a regression test for #234, where DebugView instances for
newtype constructors don't work.

These duplicate T130c, but use a `newtype` instead of `data`.
@alt-romes
Copy link
Copy Markdown
Collaborator Author

Split into #251 #250 #252

@alt-romes alt-romes closed this Mar 30, 2026
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.

Custom debug view instances do not work on newtypes

1 participant