Created
February 12, 2021 05:50
-
-
Save mgryszko/7213e62d039123a6c122305e177b82cc 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
implicit def monoidInstanceForFastMoney: Monoid[FastMoney] = new Monoid[FastMoney] { | |
override def empty: FastMoney = FastMoney.of(0, "EUR") | |
override def combine(x: FastMoney, y: FastMoney): FastMoney = x add y | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment