[Haskell] Re: sizeFM type

Ketil Malde ketil+haskell at ii.uib.no
Mon Apr 26 23:09:18 EDT 2004

"Serge D. Mechveliani" <mechvel at botik.ru> writes:

> Alexander is right.
> Also as  Integer  has more sense than  Int,
> I would suggest for the future standard Haskell library to have  
> Integer as default. For example:
>                                 length      :: [a] -> Integer
>                                 smallLength :: [a] -> Int

Hmm...isn't it possible to use a class here?  Perhaps even Num?

    class Num a where ....
        length :: [b] -> a

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell mailing list