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

dhall: provide *WithIndex instances for Map #2633

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

ozkutuk
Copy link
Contributor

@ozkutuk ozkutuk commented Jan 20, 2025

This PR adds the following instances for Dhall.Map:

  • FunctorWithIndex
  • FoldableWithIndex
  • TraversableWithIndex

indexed-traversable package is already a dependency of dhall, so this doesn't effect the dependency footprint. These instances would allow the usage of indexed optics provided by the optics libraries.

@mmhat mmhat merged commit 529dc40 into dhall-lang:main Jan 21, 2025
8 checks passed
@mmhat
Copy link
Collaborator

mmhat commented Jan 21, 2025

@ozkutuk Nice, thank you!

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

Successfully merging this pull request may close these issues.

2 participants