Atze van der Ploeg
atzeus at gmail.com
Thu Jan 1 14:17:13 UTC 2015
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
> > abiding Ord instance.
> So let me clarify that I want (<=) to be a total order in the sense that it
> * reflexive
> * symmetric
> * transitive
> and `(x <= y) && (y <= x)` implies that `x == y`.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe