typelevel / typelevel/cats

Duplicate method in WriterT

Open
#2,774 0 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

Apparently liftF and valueT, in WriterT, do the same thing. Their signatures would be identical if not for that F: Applicative[F] in liftF which is useless given its implementation just uses map and Functor would suffice. Should we deprecate one of them? If yes which name should we keep? Also, in case we decide to keep liftF, I think we should relax the Applicative constraint and use Functor instead. I can issue a PR with the changes when we decide how to proceed.

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 with the WriterT APIs named in the issue, liftF and valueT, and compare their signatures and implementations. Resolve which name should remain and whether liftF should use a Functor constraint; done means the API decision and any deprecation or constraint change are agreed and reflected consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend-api-design
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.