Created
February 11, 2015 07:54
-
-
Save fthomas/43db31b6067606904fd4 to your computer and use it in GitHub Desktop.
Laws
This file contains hidden or 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
trait InvariantLaws[F[_]] { | |
implicit def F: Invariant[F] | |
... | |
} | |
object InvariantLaws { | |
apply[F[_]](implicit ev: Invariant[F]): InvariantLaws[F] = | |
new InvariantLaws { def F = ev } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment