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 Dns#mapK, instances for EitherT, Kleisli #478

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

armanbilge
Copy link
Contributor

I expect that EitherT and Kleisli and the most commonly used non-IO instances.

@@ -62,6 +66,17 @@ sealed trait Dns[F[_]] {

/** Gets an IP address representing the loopback interface. */
def loopback: F[IpAddress]

/** Translates effect type from `F` to `G` using the supplied `FunctionK` */
final def mapK[G[_]](fk: F ~> G): Dns[G] = new Dns[G] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some libraries call this translate.

@mpilquist mpilquist merged commit 2266b13 into Comcast:main Mar 26, 2023
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