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 support for cats.kernel.Hash #9

Open
MateuszKubuszok opened this issue Sep 25, 2018 · 5 comments
Open

Add support for cats.kernel.Hash #9

MateuszKubuszok opened this issue Sep 25, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@MateuszKubuszok
Copy link
Member

So far I was unable to make

import cats.instances._

final case class Test[A](a: A)

cats.derived.semi.emptyK[Test]

compile. Since Pure requires EmptyK, it stops both derivations from happening in @Semi.

I guess importing cats.derived.auto._ would help but I hope for some better solution.

@MateuszKubuszok
Copy link
Member Author

@oleg-py, you were trying to achieve that, right?

@oleg-py
Copy link
Contributor

oleg-py commented Sep 25, 2018

Yep. I've faced the same problem :)

@MateuszKubuszok
Copy link
Member Author

Maybe it's a big in Kittens? I mean, they have tests only for auto._ but none for semi.

@MateuszKubuszok MateuszKubuszok added the help wanted Extra attention is needed label Sep 11, 2019
@MateuszKubuszok MateuszKubuszok changed the title Add support for alleycats.Pure and allyecats.EmptyK Add support for alleycats.Pure and allyecats.EmptyK and cats.kernel.Hash Sep 11, 2019
@MateuszKubuszok
Copy link
Member Author

Because I want to release #13 ASAP I had to add Hash to the list. Hopefully, someone could help me figure that out.

@MateuszKubuszok MateuszKubuszok changed the title Add support for alleycats.Pure and allyecats.EmptyK and cats.kernel.Hash Add support for cats.kernel.Hash Sep 11, 2019
@MateuszKubuszok
Copy link
Member Author

After some playing with REPL I came to conslusion that EmptyK probably doesn't fit @Semi use cases as it produces EmptyK[FG] for some F[_]: Pure, G[_]: EmptyK, type FG[A] = F[G[A]].

It also appears that alleycats.Pure is worksing with kittens 2.0.0.

That only lives cats.Hash, which I am unable to make work in my REPL, no matter auto or semi so it's probably something about my configuration, though I cannot officially claim that it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants