Monoid instances by tails

 :$(x)
x:"abcdefghijklmnopqrstuvwxyz!instance ( Monoid _) => Monoid (_) where\n    mempty = (mempty)\n    (_1) `mappend` (_2) = (_1 `mappend` _2)\n\n"
(0(.*!).*\()(.*)(\).*):$1 $(1$2$3)"$4"
(1.*)(.)!(.*):$1!$3","2$2$3
((2(.).*)_|0.*!|2.|, *)(.*):$2"$3$4"
(.+).(!.*):$1$2 0$&
.*:

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

download

return to the top page