Fwd: Give alternate default definition for (<=)

Dannyu NDos ndospark320 at gmail.com
Fri May 8 22:18:17 UTC 2020


---------- Forwarded message ---------
보낸사람: Dannyu NDos <ndospark320 at gmail.com>
Date: 2020년 5월 8일 (금) 16:35
Subject: Re: Give alternate default definition for (<=)
To: Sven Panne <svenpanne at gmail.com>


2020년 5월 8일 (금) 15:33, Sven Panne <svenpanne at gmail.com>님이 작성:

> Eq is a superclass of Ord, so how do you define that for Computable?
>

instance Eq Computable where
    x == y = x <= y && y <= x

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20200509/0c3c408a/attachment.html>


More information about the Libraries mailing list