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

A unified mapK #1982

Closed
kailuowang opened this issue Oct 20, 2017 · 1 comment
Closed

A unified mapK #1982

kailuowang opened this issue Oct 20, 2017 · 1 comment

Comments

@kailuowang
Copy link
Contributor

kailuowang commented Oct 20, 2017

For many T[F[_], A] or T[F[_]], we can add a mapK that does the following

class T[F[_], A] {
  def mapK[F[_], G[_]]()(f: F ~> G): T[G, A]`
}

This is non-abstracted part of #1815
The following types can have this mapK method

  • WriterT
  • Kleisli
  • OptionT
  • EitherT
  • IdT
  • EitherK
  • Tuple2K
  • Free
  • FreeT
  • Func
  • Nested
  • OneAnd

@andyscott offered to work on this

@LukaJCB
Copy link
Member

LukaJCB commented Nov 1, 2017

Fixed by #2000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants