hedgehogqa / hedgehogqa/haskell-hedgehog-classes

`stimes` should be defined on `0` for all monoids

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.