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

Category, Functor, Monad, Comonad, etc. should mention algebraic laws #215

Open
MostAwesomeDude opened this issue Jul 4, 2022 · 1 comment

Comments

@MostAwesomeDude
Copy link

For example, the algebraic laws for categories say that, for any arrow f. f;id == id;f == f. These laws are essential for functors and monads.

@raegen
Copy link

raegen commented Jul 5, 2022

I consider myself somewhat literate when it comes to functional programming (it was love at first sight), so naturally (or not?), I went straight down to the monad definition, kind of hoping for a mind-blowingly simple (possibly wrong, but practical) description. Next I went to Issues to create one showing my disappointment but thinking I ought to keep it constructive. Imagine my dismay and complacency when I realized somebody has already done it. Moreover, yours have been (from what I saw), solely constructive.
tldr. It's not an overstatement if I say I do not understand the aforementioned definitions.

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

2 participants