-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 monoid syntax #1130
Add monoid syntax #1130
Conversation
Current coverage is 88.90%@@ master #1130 diff @@
==========================================
Files 227 228 +1
Lines 2991 2993 +2
Methods 2940 2942 +2
Messages 0 0
Branches 48 48
==========================================
Hits 2661 2661
- Misses 330 332 +2
Partials 0 0
|
@hamishdickson thanks for working on this!
I think that you can remove the comments. We've decided not to use simulacrum within cats-kernel for the time being.
I don't understand machinist very well. I thought that you'd be able to do something like |
PS @hamishdickson I had forgotten about the usage of machinist, and this issue wasn't as much "low-hanging-fruit" as I was thinking it was. Sorry about that! |
@ceedubs my pleasure and no need to say sorry! I found it really interesting trying to get machinist to work (I also tried If @non doesn't know off the top of his head, I will have a deeper look into machinist 😄 Another noob question (sorry) - should I be updating any docs with this change? |
There's definitely no need to apologize. If you feel inclined, you could add an example of using the |
@ceedubs so there are two evidence parameters here ( EDIT: This still seems to have a problem. I'd say let's merge what you have and I'll look into Machinist. 👍 |
This resolves #1124
There are a couple of questions
Group
andSemiGroup
the comment// TODO: use simulacrum instances eventually
has been made. I have copied this so all 3 can be changed at the same time. Is that the right thing to do here? I'm happy to use simulacrum if notisEmpty
I originally attempted to useOps.binOp
but couldn't get it to work with my implicitEq
. Should I be using that here?Sorry they are such basic questions, this is my first attempt at contributing to Cats and I'm trying to find my feet!