`avg_` and `sum_` should require `Num` instances
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Search the Haskell sources for avg_ and sum_, then compare their definitions and type signatures with round_, floor_, and ceiling_. Confirm that numeric use remains supported and that non-numeric use is rejected at compile time; the change is done when those constraints are enforced consistently.
Written by the indexing model from the issue text.
Description
Like round_, floor_ and ceiling_, avg_ and sum_ should have Num instances because their SQL function equivalents can only be used on numbers.
As any program using this functions on non-numeric values would crash already, this may even be possible to do in a minor version bump (but I understand unwillingness to do so).
- Dominant language
- Haskell
- Stars
- 401
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
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.
More from bitemyapp/esqueleto
-
Difficulty 5/5 Over a week Newbie friendliness 8/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in bitemyapp/esqueleto
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haskell/bytestring#730 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
seal-harness/seal-harness#399 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
fmidue/codeworld-tasks#124 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
reflex-frp/reflex#563 ·
-
The codecov job never gets a runner on macos-26 and is cancelledPossibly taken @yegor256 claimed this 1 day ago. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
objectionary/phino#2524 · 1 comment ·
Maintainers usually reply within 1 day