Created
May 20, 2017 07:21
-
-
Save macalinao/f072b1b2a34400e47fedc2872e7c00e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pw.ian.playground.cats | |
import cats._ | |
import cats.implicits._ | |
// runMain "pw.ian.playground.shapeless.KittensNullMonoid" | |
object NullTypeclass { | |
case class Moments(ct: Int) | |
implicit val momentsMonoid: Monoid[Moments] = Monoid[Moments] | |
def main(args: Array[String]): Unit = { | |
println(momentsMonoid) // prints "null" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment