Closed stoeffel closed 8 years ago
Reminder for myself: To define a Ord one should have to define max/min not empty. Max should use Ord.max and Min -> Ord.Min
I added some examples and changed Ord
to have min
/max
instead of empty
(see examples).
The only thing that I don't like of the current solution is that you end up with:
wrapped { x: wrapped { x: -8 } }
Not related to this PR but it would be nice to not spread the use of nodeunit further which is just entirely dead.
Not related to this PR but it would be nice to not spread the use of nodeunit further which is just entirely dead.
Agreed.
I moved the examples to the tests and added mconcat/ concat
I think this is ready to :ship: . I consider moving to mocha in a separate PR (I'm totally in favour of that, never was a fan of nodeunit.). @SimonRichardson anything to change, add? do you want me to squash the commits, or okay like this?
I'd rather stick with nodeunit because the rest of the libraries are, so if we change we should change all of them. So :-1: for mocha atm
Works for me.
rebased and ready to :ship: IMO.
OK I'll have a look tomorrow.
On Mon, 22 Feb 2016, 20:26 Christoph Hermann notifications@github.com wrote:
rebased and ready to [image: :ship:] IMO.
— Reply to this email directly or view it on GitHub https://github.com/fantasyland/fantasy-monoids/pull/10#issuecomment-187369371 .
Cool. let me know if I should change or add something.
Sure, will do
On Mon, 22 Feb 2016, 20:28 Christoph Hermann notifications@github.com wrote:
Cool. let me know if I should change or add something.
— Reply to this email directly or view it on GitHub https://github.com/fantasyland/fantasy-monoids/pull/10#issuecomment-187369972 .
did you have time to review this? anything to add? no need to hurry just want to check in.
:+1: Sorry for the delay, been really busy atm.
Sorry for the delay, been really busy atm
no problem :-) Thanks for merging.
This adds a
Ord
type and makesMin
andMax
work with it. I will clean this up next week.