[Haskell-cafe] ordNub

Atze van der Ploeg atzeus at gmail.com
Thu Jan 1 14:17:13 UTC 2015


Taking

Instance Eq a where
  _ == _ = True

Then it has all the properties you mentoined
On Jan 1, 2015 3:14 PM, "Tom Ellis" <
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk> wrote:

> On Thu, Jan 01, 2015 at 03:12:15PM +0100, Atze van der Ploeg wrote:
> > Instance Ord a where
> >   _ <= _ = True
> >
> > Is law abiding for any type. So there is no type that cannot support a
> law
> > abiding Ord instance.
>
> So let me clarify that I want (<=) to be a total order in the sense that it
> is
>
> * reflexive
> * symmetric
> * transitive
>
> and `(x <= y) && (y <= x)` implies that `x == y`.
>
> Tom
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20150101/ffa4c452/attachment.html>


More information about the Haskell-Cafe mailing list