Nothing Special   »   [go: up one dir, main page]

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

Fix #405: support --functor in the Agda backend #406

Merged
merged 7 commits into from
Dec 23, 2021
Merged

Conversation

andreasabel
Copy link
Member
@andreasabel andreasabel commented Dec 21, 2021

Fix #405: support --functor in the Agda backend

TODO:

  • define pragmas
  • changelog
  • docs

This updates the generated abstract syntax (AST.agda) so that data
types are parametrized, and instantiated to #BNFCPosition.
@andreasabel andreasabel added Agda Issues of the Agda backend position Concerning position information in parsed AST labels Dec 21, 2021
@andreasabel andreasabel added this to the 2.9.4 milestone Dec 21, 2021
@andreasabel andreasabel self-assigned this Dec 21, 2021
@andreasabel
Copy link
Member Author

@depsterr: Does this fit your needs?

@rachelambda
Copy link

This seems perfect! Thanks for the quick fix, much appreciated!

Underscores are placeholders in Agda, so e.g. the name Foo_' is
invalid, since ' by itself is not a valid name.
Generalize `definedRules` to `definedRules'` using a configuration
record that is instantiated to both Haskell and Agda.
Also, observe that the Agda backend needs at least Agda 2.6.0.
@andreasabel andreasabel merged commit 7d7b714 into master Dec 23, 2021
@andreasabel andreasabel deleted the issue405 branch December 23, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agda Issues of the Agda backend position Concerning position information in parsed AST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--functor and --agda cannot be used simultaneously
2 participants