typelevel / typelevel/cats

Call-by-name parameter for `as`

Open
#3,946 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
5.5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
5

Description

This issue in http4s shows that Functor.as (and all the paths leading there) should evaluate their argument lazily. Maybe... Please evaluate.

https://github.com/http4s/http4s/issues/4971

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked http4s issue and tracing Functor.as along the paths that lead to it. Determine whether the argument is evaluated lazily throughout those paths; done means the expected call-by-name behavior is established with appropriate verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.