hedgehogqa / hedgehogqa/haskell-hedgehog-classes
`stimes` should be defined on `0` for all monoids
Open
- Dominant language
- Haskell
- Stars
- 57
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
I assume that `stimes 0 xs` should be `mempty` for all monoids.
However, this is something that is easy to miss + many of the implementations out there are "broken" in that regard.
Should we test for this in `monoidLaws`?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating `monoidLaws` and the existing laws around `stimes` in the repository. Check how laws are expressed and tested, then determine whether `stimes 0 xs == mempty` can be added as a general monoid law; done means the law is included and the relevant test suite passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100