Closed JaSpa closed 4 years ago
I was looking at the implementation and was wondering if there is a specific reason to use a hand-written implementation for
stimes
instead ofData.Semigroup.stimesMonoid
.
I'm not aware of any reason.
If I look at it correctly
stimesMonoid
uses only a logarithmic number of(<>)
and would be preferable to the current implementation. If this is case I can make a pull-request.
That seems reasonable. One thing that occurs to me is that it would be preferable to keep the existing error message instead of the stimesMonoid
message. A PR would be welcome!
Hey, thanks for this library!
I was looking at the implementation and was wondering if there is a specific reason to use a hand-written implementation for
stimes
instead ofData.Semigroup.stimesMonoid
. If I look at it correctlystimesMonoid
uses only a logarithmic number of(<>)
and would be preferable to the current implementation. If this is case I can make a pull-request.