Monoid instances by Shmiddty

for(i=0,o=[];i<26;i>1&&print("instance","("+o.map(function(a)"Monoid "+a).join(", ")+")","=> Monoid ("+o+") where\n   ",m="mempty", "= ("+o.map(function(a)m)+")\n    ("+o.join("1,")+"1) `mappend` ("+o.join("2,")+"2) = ("+o.map(function(a)a+"1 `mappend` "+a+"2")+")\n"))o[i]=<>&#{97+i++};</>

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page