Skip to content
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

NamedFieldPuns support #48

Open
georgefst opened this issue Oct 12, 2022 · 0 comments
Open

NamedFieldPuns support #48

georgefst opened this issue Oct 12, 2022 · 0 comments

Comments

@georgefst
Copy link

{-# LANGUAGE NamedFieldPuns #-}

data D = D {a :: Bool}
f a = D{a = a}
x = f True

retrie --unfold Main.f correctly produces x = D{a = True}. But if we equivalently f a = D{a}, then we get x = D{a}, which doesn't make any sense.

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

No branches or pull requests

1 participant