Break `abs` into two aspects
Dannyu NDos
ndospark320 at gmail.com
Tue Jan 28 10:57:25 UTC 2020
Rational is applicable the suggested new functions.
2020년 1월 28일 (화) 오후 7:49, Henning Thielemann <lemming at henning-thielemann.de>님이
작성:
>
> On Tue, 28 Jan 2020, Dannyu NDos wrote:
>
> > 3. Step 2:
> >
> > Second, I suggest to move `abs` and `signum` from `Num` to `Floating`:
> >
> > class Floating a where
> > abs :: a -> a
> > signum :: a -> a
> > ...
>
> Rational is not Floating, but has reasonable abs and signum.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20200128/75080d69/attachment.html>
More information about the Libraries
mailing list