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

Proposal: monad with coerce? #601

Open
InfiniteEchoes opened this issue Aug 21, 2024 · 3 comments
Open

Proposal: monad with coerce? #601

InfiniteEchoes opened this issue Aug 21, 2024 · 3 comments

Comments

@InfiniteEchoes
Copy link
Collaborator

InfiniteEchoes commented Aug 21, 2024

coerce :: M' 0 a  M a
coerce m = \x . let a = m x in (a, x)

As in this paper, I think many operations could be interesting to use, and moreover this might be very useful and more formal to resolve the mutual dependency issue

@InfiniteEchoes InfiniteEchoes changed the title Proposal: coerce combinator? Proposal: monad with coerce? Aug 21, 2024
@clarus
Copy link
Collaborator

clarus commented Aug 21, 2024

I think operators would not help to solve the dependencies issue, as operators are mostly syntactical sugar but does not change what we can express, or maybe I do not understand what you mean by mutual dependency issue.

@olympichek
Copy link
Collaborator

I second this. I don't understand what exactly do you mean by mutual dependency issue or how coerce can help with it. As for the paper and monadic operations, I would take a look at it later

@InfiniteEchoes
Copy link
Collaborator Author

InfiniteEchoes commented Sep 1, 2024

I second this. I don't understand what exactly do you mean by mutual dependency issue or how coerce can help with it. As for the paper and monadic operations, I would take a look at it later

Yes, for now I also don't take it seriously, since we haven't met anything that requires a serious investigation into the mutual dependency issue yet.

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

No branches or pull requests

3 participants