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

Deriving push for function types should be possible, but even with a wrapped data type is broken. #232

Open
dorchard opened this issue Dec 18, 2023 · 0 comments
Labels

Comments

@dorchard
Copy link
Member

We would like to be able to do

push @(->)

to get the function (a -> b)[r] -> a [r] -> b [r] but this currently does not parse. When investigating I tried to make a wrapper:

data Fun a b = Fun (a -> b)

but push @ Fun gives:

Granule> :t push @ Fun
grepl: Cannot push derive for type a0 -> a1
CallStack (from HasCallStack):
  error, called at src/Language/Granule/Synthesis/Deriving.hs:243:3 in granule-frontend-0.9.5.0-5UdUxTp5lHb2yDT2r0aV24:Language.Granule.Synthesis.Deriving
@dorchard dorchard added the bug label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant