Infix operators for flatMap, coflatMap and cokleisli composition
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 5.5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
Cats already has the infix operator for Monad >>= which is very useful and expressive for chaing efectful functions.
Both haskell and scalaz also provide the fish operator >=> for kleisli composition, and also their right-to-left versions =<< and <=<
There are also the same operators for comonads: =>>, =>=, <<=, =<=
I would be glad to create a pull request for these if nobody objects.
Contributor 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.
Research direction
Start by reviewing Cats' existing Monad >>= operator and the requested fish and comonad operators in the issue. Locate the relevant typeclass and syntax entry points, then determine the tests needed to establish the intended left-to-right and right-to-left composition behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100