Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Scala for Haskell programmers. Parent comment
As for the monoid instance:
def pairMonoid[A,B](a:Monoid[A],b:Monoid[B]) = new Monoid[(A, B)] { def empty = (a.empty, b.empty) ... }
There are no comments on this comment yet.
As for the monoid instance:
def pairMonoid[A,B](a:Monoid[A],b:Monoid[B]) = new Monoid[(A, B)] { def empty = (a.empty, b.empty) ... }