Skip to content

Instances for Monoidal (,) () #194

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

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Instances for Monoidal (,) () #194

merged 1 commit into from
Sep 21, 2020

Conversation

aspiwack
Copy link
Member

These are ported from #79 where they were needed for traversal-type
things. These instances can't hurt. Even though I don't know what we
are going to do with traversals yet.

These are ported from #79 where they were needed for traversal-type
things. These instances can't hurt. Even though I don't know what we
are going to do with traversals yet.
@aspiwack aspiwack mentioned this pull request Sep 18, 2020
Comment on lines +47 to +48
Kleisli f *** Kleisli g = Kleisli $ \(x,y) -> (,) Control.<$> f x Control.<*> g y
unit = Kleisli Control.pure
Copy link
Contributor

@Divesh-Otwani Divesh-Otwani Sep 18, 2020

Choose a reason for hiding this comment

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

Perhaps use -XInstanceSigs and give type signatures for (***) and unit just for readability. It's a bit of a pause figuring out the type in my head. Same for instances below.

Copy link
Member Author

Choose a reason for hiding this comment

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

If we are to add instance signatures, we should go over the whole module. So this would be a separate PR.

@aspiwack aspiwack merged commit 90da049 into master Sep 21, 2020
@aspiwack aspiwack deleted the monoidal-instances branch September 21, 2020 06:49
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.

2 participants