Skip to content

Instantly share code, notes, and snippets.

@Koisell
Last active September 23, 2019 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Koisell/26cc110426e52698d85e7345ad927b2c to your computer and use it in GitHub Desktop.
Save Koisell/26cc110426e52698d85e7345ad927b2c to your computer and use it in GitHub Desktop.
def map(fa: Foo[A])(f: A => B): Foo[B] = ???
case class Foo[A](...)
object Foo {
implicit val functor: Functor[A] =
new Functor[A]{
def map(fa: Foo[A])(f: A => B): Foo[B] = ???
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment