Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add HsTypRef for handling TypElaborated #243

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Add HsTypRef for handling TypElaborated #243

merged 1 commit into from
Oct 30, 2024

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Oct 29, 2024

No description provided.

@@ -6,7 +6,9 @@ instance Storable CFoo
poke = \x_1 -> \x_2 -> case x_2 of
{MkCFoo cFoo_i_3
cFoo_c_4 -> pokeByteOff x_1 0 cFoo_i_3 >> pokeByteOff x_1 32 cFoo_c_4}}
data CBar = MkCBar {cBar_foo1 :: Void, cBar_foo2 :: Void}
data CBar
= MkCBar {cBar_foo1 :: CStruct'0020foo,
Copy link
Collaborator Author

@phadej phadej Oct 29, 2024

Choose a reason for hiding this comment

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

TypElaborated and name manging is broken. The symbol in TypElaborated is struct foo, not bare foo; which gets manged to something different than a standalone foo in struct foo.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, that is little more than a stand-in at the moment. We need to do this properly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Have opened #244 to track this.

@edsko edsko merged commit 5404537 into main Oct 30, 2024
8 checks passed
@edsko edsko deleted the data-decl-cons-d branch October 30, 2024 11:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants