[Haskell-cafe] Num instances for 2-dimensional types

Lennart Augustsson lennart at augustsson.net
Mon Oct 5 09:55:04 EDT 2009


And what is a number?  Are complex numbers numbers?

On Mon, Oct 5, 2009 at 3:12 PM, Miguel Mitrofanov <miguelimo38 at yandex.ru> wrote:
>
>
> Sönke Hahn wrote:
>
>> I used to implement
>>
>>    fromInteger n = (r, r) where r = fromInteger n
>>
>> , but thinking about it,
>>    fromInteger n = (fromInteger n, 0)
>>
>> seems very reasonable, too.
>
> Stop pretending something is a number when it's not.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list