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

Lift/IsoK smart constructors #356

Merged
merged 4 commits into from
Aug 10, 2020
Merged

Lift/IsoK smart constructors #356

merged 4 commits into from
Aug 10, 2020

Conversation

GusevTimofey
Copy link
Contributor

No description provided.

Copy link
Member

@catostrophe catostrophe left a comment

Choose a reason for hiding this comment

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

Can we have the same for IsoK?

@GusevTimofey GusevTimofey changed the title Lift smart constructor Lift/IsoK smart constructors Aug 10, 2020
@@ -30,4 +30,11 @@ object IsoK {
def to[A](fa: F[A]): F[A] = fa
def from[A](ga: F[A]): F[A] = ga
}

def byFunK[F[_], G[_]](fg: F ~> G, gf: G ~> F): IsoK[F, G] =
Copy link
Member

Choose a reason for hiding this comment

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

I would like to have (fg: F ~> G)(gf: G ~> F) to make it consistent with methods from tofu.syntax.lift._

@catostrophe catostrophe merged commit 7f6ba4d into tofu-tf:master Aug 10, 2020
@Odomontois Odomontois added the enhancement New feature or request label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants