[Haskell-cafe] Re: fromInteger for Lists

Jon Fairbairn jon.fairbairn at cl.cam.ac.uk
Sat May 2 06:24:47 EDT 2009


Henning Thielemann <schlepptop at henning-thielemann.de> writes:

> Paul Keir schrieb:
>> There's nothing better than making a data type an instance of Num. In
>> particular, fromInteger is a joy. But how about lists?
>
> http://www.haskell.org/haskellwiki/Num_instance_for_functions
> http://www.haskell.org/haskellwiki/Type_classes_are_for_reusability

Hear, hear!

-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk
http://www.chaos.org.uk/~jf/Stuff-I-dont-want.html  (updated 2009-01-31)



More information about the Haskell-Cafe mailing list