[Haskell-cafe] instance Enum Double considered not entirely great?
Felipe Almeida Lessa
felipe.lessa at gmail.com
Wed Sep 21 03:59:25 CEST 2011
On Tue, Sep 20, 2011 at 7:38 PM, Maciej Marcin Piechotka
<uzytkownik2 at gmail.com> wrote:
> +1 for:
>
> class Eq a => IEEEEq a where
> (<.) :: a -> a -> Bool
> (>.) :: a -> a -> Bool
We already have this but it is hidden inside a library. It's called
PartialOrd [1] and it's on the logfloat package.
class PartialOrd a where
cmp :: a -> a -> Maybe Ordering
...
http://hackage.haskell.org/packages/archive/logfloat/0.12.1/doc/html/Data-Number-PartialOrd.html
--
Felipe.
More information about the Haskell-Cafe
mailing list