Proposal: Add Data.Semigroup to base, as a superclass of Monoid
Petr Pudlák
petr.mvd at gmail.com
Thu Jun 13 20:20:26 CEST 2013
Dne 06/13/2013 07:05 PM, Stephen Tetley napsal(a):
> -1
>
> I'm against adding Semigroup to Base as it only has one useful operation in
> the class and no useful generic functions (without adding more overhead to
> Base - non-empty lists, naturals...).
The most useful function from Semigroups for me is `times1p` (or its
monoidal variant `timesN`). What about adding a function similar to
`timesN` (perhaps with another name) to Prelude (and implement `(^)`
with it)?
Petr
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130613/b88f9043/attachment.htm>
More information about the Libraries
mailing list