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

Add a newtype Unit #106

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Add a newtype Unit #106

merged 1 commit into from
Aug 25, 2024

Conversation

meooow25
Copy link
Contributor

Unit is a newtype over () with handy Semigroup+Monoid instances, where (<>) = seq. This allows reducing structures to normal form using foldMap-like functions.

Closes #105.

The names Unit and runUnit make sense to me, but if you'd prefer something else let me know.

@meooow25
Copy link
Contributor Author

Looks like the CI needs fixing.

@Bodigrim
Copy link
Contributor

Looks like the CI needs fixing.

Yeah, regenerate it with the newest haskell-ci.

mixphix added a commit that referenced this pull request Aug 25, 2024
Unit is a newtype over () with handy Semigroup+Monoid instances,
where (<>) = seq. This allows reducing structures to normal form
using foldMap-like functions.
@meooow25
Copy link
Contributor Author

Thanks, rebased.

@mixphix mixphix merged commit 9f5e491 into haskell:master Aug 25, 2024
9 checks passed
@meooow25 meooow25 deleted the unit branch August 25, 2024 14:43
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.

Add Unit
3 participants