Generalizing some type signatures involving Int

Vanessa McHale vanessa.mchale at iohk.io
Wed Nov 14 01:18:58 UTC 2018


Would it be possible to generalize replicate and length to have type
signatures

replicate :: Integral a => a -> b -> [b]

and

length :: (Integral a, Foldable t) => t b -> a

?

There have been a few instances where such a thing would have been
useful to me.

Cheers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20181113/e4920c34/attachment.sig>


More information about the Libraries mailing list