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

"Monoids" is outdated #49

Open
Pi-Cla opened this issue Mar 3, 2023 · 1 comment
Open

"Monoids" is outdated #49

Pi-Cla opened this issue Mar 3, 2023 · 1 comment

Comments

@Pi-Cla
Copy link

Pi-Cla commented Mar 3, 2023

In: Functors, Applicative Functors and Monoids it described Monoids as having a minimal definition of mempty and mappend. Nowadays one has to define the Semigroup first and then define just mempty to create a Monoid. So people should not manually define mappend anymore. Perhaps a section on Semigroups can be created out of the existing sectiom for Monoids?

@Pi-Cla
Copy link
Author

Pi-Cla commented Mar 4, 2023

Also, we should in general replace any mention of mappend with <> since the book mostly uses mappend in infix form anyways and this note in the Prelude docs about GHC supposedly removing mappend in some future release.

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

1 participant