Skip to content

Change Monad polymorphism #20

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

omelkonian
Copy link
Collaborator

Suggestion by @UlfNorell to also allow for mapping the input/domain level, which further enables non-polymorphic instances.

(Based on #19)

@omelkonian
Copy link
Collaborator Author

@UlfNorell Ouch, unification issues really make things tedious..

@UlfNorell
Copy link
Member

It's a little surprising that it's that much worse than the ultra-polymorphism version.

@WhatisRT
Copy link
Collaborator

WhatisRT commented Jun 4, 2025

That's a nice idea! Can we use a tactic argument to default the first level mapping to id to solve the unification issues? If that works the overhead is contained in the class definitions (Functor, etc.) where you have to manually pass the first level mapping correctly and then all the places where you want to have a different first mapping.

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.

3 participants