Last active
August 29, 2015 14:04
-
-
Save davidandrzej/274da5ddfb2b96ce6ec8 to your computer and use it in GitHub Desktop.
Revisions
-
davidandrzej revised this gist
Aug 14, 2014 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ trait Monoid[F] extends Semigroup[F] { ... trait MonoidLaw extends SemigroupLaw { def leftIdentity(a: F)(implicit F: Equal[F]) = F.equal(a, append(zero, a)) def rightIdentity(a: F)(implicit F: Equal[F]) = F.equal(a, append(a, zero)) } ... } -
davidandrzej created this gist
Aug 3, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ trait Monoid[F] extends Semigroup[F] { ... trait MonoidLaw extends SemigroupLaw { def leftIdentity(a: F)(implicit F: Equal[F]) = F.equal(a, append(zero, a)) def rightIdentity(a: F)(implicit F: Equal[F]) = F.equal(a, append(a, zero)) } ... }