-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proposal about primitives to do destination-passing style structure building in compact regions #7
base: upstream-master-20241107
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better. A few extra comments.
proposals/0000-dps-compact.md
Outdated
Without the new built-in typeclass, the syntax would become: | ||
|
||
```haskell | ||
fill @'MkIdCard @"MkIdCard" d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be fill @IdCard @"MkIdCard"
instead? Still not great, but at least not repetitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If fill
no longer receive the constructor lifted as a type ('Left
), then we need to implement the resolution (name :: Symbol, baseType :: Type) -> DataCon
inside reifyInfoTablePtr#
. That means a more complex reifyInfoTablePtr#
, with little advantage (still 2 type parameters to supply)
e89e955
to
74365e8
Compare
No description provided.