typelevel / typelevel/doobie

Align API with cats/fs2

Open
#654 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
379
Avg merge
14m
Merged PRs (30d)
8

Description

There have been several API changes in cats, cats-effect and fs2. As we are still in milestone phase, it'd be helpful for newcomers to keep the names as consistent as possible with our dependencies.

Things to consider (maybe incomplete):

  • Update#fail -> Update#raiseError (MonadError#raiseError)
  • Update(0)#run -> Update(0)#compile (Stream#compile): might be confusing because Stream#compile needs a consequent combinator unlike deprecated Stream#run
  • deprecate Query(0)#process in favor of Query(0)#stream
  • {Kernel, Composite}#zip -> {Kernel, Composite}#product (Semigroupal#product) or Kernel.product -> Kernel.zip

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 Update, Query, Kernel, and Composite entry points named in the issue, then compare their APIs with the linked cats and fs2 documentation. Done means the proposed names are aligned consistently, with the specified deprecation handled and any ambiguity around compile, product, and zip resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, database
Issue type
Refactor
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.