nick8325 / nick8325/quickcheck
Semigroup Gen instance
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 790
- Forks
- 130
- Avg merge
- 16h 41m
- Merged PRs (30d)
- 2
Description
Why there is no Semigroup instance for generators?
It must be very useful when building composite values such as url:
genUrl :: Gen Text
genUrl = elements ["http", "https"] <> pure "://" <> elements ["ya.ru", "google.pl"]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Gen type and its existing instances, then review how generator composition currently works. Implement the requested Semigroup behavior so the genUrl example can compose its parts, and verify that composite generators produce the expected combined values.
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
- 38/100