Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support polymorphic classes and type change?

Open
#4 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
scala
Domain
tooling

Research direction

Start with the polymorphic case-class example in the issue and inspect the existing modify expression entry point. Determine the intended type-change behavior for the chained addresses, street, and name access, then establish tests showing the example compiles and produces the expected result.

Written by the indexing model from the issue text.

Description

Any interest in supporting polymorphism and type change?

case class Street[+A](name: A)
case class Address[+A](street: Option[Street[A]])
case class Person[+A](addresses: List[Address[A]])

val p2 = modify(person)(_.addresses.each.street.each.name).using(_.length)
Dominant language
Scala
Stars
852
Forks
53
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from softwaremill/quicklens

All issues in softwaremill/quicklens

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.