Repository navigation
Implements semigroup and monoid for Maybe. - #125
Conversation
|
|
||
|
|
||
| extend(Just.prototype, { | ||
| empty() { |
There was a problem hiding this comment.
You can remove this definition.
| }); | ||
|
|
||
| extend(Nothing.prototype, { | ||
| empty() { |
| /*~ | ||
| * type: | | ||
| * forall a: () => Maybe a | ||
| */ |
| /*~ | ||
| * type: | | ||
| * forall a: () => Maybe a | ||
| */ |
There was a problem hiding this comment.
They're all automatically derived from this one definition here :)
|
Looks neat, thanks! :) I've requested a few simple changes and then it's ready to be merged :) |
|
hmm, I've forgot to remove those when you fixed the test issue. :) |
377d18b to
16ce056
Compare
|
Nice π Could you add an If you're up to writing docs too, a short description with usage examples (as explained here) would be neat! In this case, the category for |
871a1d8 to
9261aaa
Compare
9261aaa to
7b51fcd
Compare
|
I tried to write all the docs, but Hope to take some time to hack with |
|
No worries :) Thanks |
Implements semigroup and monoid for Maybe.