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

Move to erlandono #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Move to erlandono #81

wants to merge 1 commit into from

Conversation

schonfinkel
Copy link
Collaborator

@schonfinkel schonfinkel commented Dec 4, 2024

@schonfinkel schonfinkel marked this pull request as ready for review December 4, 2024 23:51
@schonfinkel schonfinkel self-assigned this Dec 4, 2024
Comment on lines +8 to +14
%-type monad(_A) ::
% {{ok, any(), any()}, select} |
% {{ok, any()}, delete} |
% {{ok, any()}, insert} |
% {{ok, any(), any(), any()}, insert} |
% {{ok, any()}, update} |
% {{error, any()}, any()}.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate why this would only make sense if we export it? I would like to keep it in order to keep it consistent on how the original erlando does its monads.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to know which functions use this otherwise it's never used by the functions inside the module (it never typed anything) or outside it.

If you want to use outside it, we can export the type btw.

Copy link
Member

@EduardoLR10 EduardoLR10 Dec 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't follow why this needs to be used somewhere to be uncommented. My intention is to keep it in order to maintain the pattern created by erlando. In this sense, keeping it in form of a comment, although non-ideal, is ok.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EduardoLR10 then why not import monad.monad? the lib actually exports the type.

Copy link
Member

@EduardoLR10 EduardoLR10 Dec 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, I actually haven't thought of that. Should we do that?

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.

Move to erlandono
2 participants