Skip to content
CAI
Software that uses CAICheck a score

milessabin/shapeless

55.0

Adequate · 14 November 2026

20.7k

lines of production code

Scala

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added scripts for automated Shapeless REPL sessions and SBT configuration

The repository now includes a new \scripts/try-shapeless.sh\ shell script that bootstraps the Coursier launcher and starts an Ammonite REPL pre-loaded with Shapeless 2.3.10 for Scala 2.13, allowing users to quickly experiment with the library. Additionally, a \scripts/dot-sbtrc\ file has been added to define an SBT alias that automatically reloads the build and switches to the \coreJVM\ project.

scripts · high confidence

New examples demonstrating type-level programming and structural operations

Added a suite of new Scala examples in the \examples\ directory illustrating advanced Shapeless capabilities, including a la carte case class emulation with caching (\alacache\, \alacarte\), type-level backtracking for genealogical relationships (\backtracking\), functional updates and merging of sealed and open case class families (\basecopy\, \caseclassmerge\), CSV serialization with optional fields (\csv\), deep traversal of recursive structures (\deephlister\, \deepsearch\), structural delta computation (\delta\), type class derivation for complex ADTs (\derivation\), safe enum implementation via ADTs (\enum\), and type-level arithmetic for factorials and Fibonacci numbers (\factorial\, \fibonacci\).

examples · high confidence

Project initialization and repository setup

This change establishes the initial state of the repository by adding core project files including the Apache 2.0 LICENSE, a comprehensive list of CONTRIBUTORS, and a README.md documenting the library's usage with SBT and Maven. It also introduces configuration files such as .gitignore to manage workspace artifacts, .codecov.yml for coverage thresholds, and .jvmopts for JVM settings, while removing legacy Eclipse project files (.classpath, .project).

(repo-wide) · high confidence

Removals

Removal of experimental HList and polymorphic function infrastructure

The experimental HList implementation and its associated polymorphic function support have been removed from the source code. This deletion eliminates the \Rank2Poly\ trait for higher-rank polymorphic function application, the \HList\/\HCons\/\HNil\ data structures, and the implicit conversions between tuples and HLists defined in \conversions.scala\. Consequently, users can no longer utilize the \map\, \foldLeft\, or \tupled\ operations on these heterogeneous lists, nor can they use the \HListFn\ abstraction to lift standard functions into the HList context.

src · high confidence

Behavioural changes

Major library overhaul: new macro infrastructure and expanded type-class facets

The core shared library has been significantly refactored to support more robust macro-based derivation and a richer set of generic type classes. A new \MacroState\ utility has been introduced to manage macro state safely across compiler runs, avoiding race conditions. The \Generic\ and \LabelledGeneric\ systems have been updated to better handle nested case classes and capture implicit parameters at materialization time. New facets have been added to \alacarte.scala\, providing automatic derivation for \ApplyUnapply\, \Product\, \PolymorphicEquality\, \Copy\, and \ToString\ behaviors on case classes. Additionally, \annotation.scala\ now supports \TypeAnnotations\ and variable annotations, while \default.scala\ offers new \AsRecord\ and \AsOptions\ views for default values. Underlying constraint type classes (\UnaryTCConstraint\, \BasisConstraint\, \LUBConstraint\, \KeyConstraint\, \ValueConstraint\) have been restructured for better type-level safety.

core/shared/src/main · high confidence

Removed Eclipse Scala IDE compiler preferences

The project-specific compiler configuration file for the Scala IDE (org.scala-ide.sdt.core.prefs) has been removed. This file previously contained various compiler flags, including experimental features and warning settings, which are no longer managed at this location.

.settings · high confidence

Shapeless plugin adds Scala 2.13+ by-name to lazy conversion

The plugin now includes a new \ShapelessPlugin\ implementation that handles the migration of by-name implicits to \shapeless.Lazy\ and \shapeless.Strict\ types. For Scala 2.13 and later, the plugin transforms \shapeless.Lazy\ and \shapeless.Strict\ usages into native by-name implicits, while for Scala 2.12 and earlier, it performs the reverse conversion, turning by-name implicits into \shapeless.Lazy\ wrappers. This ensures compatibility with the language changes regarding by-name parameters in Scala 2.13.

plugin · high confidence

Support for Generic derivation in nested case class companion objects

The \@generateGeneric\ macro annotation now correctly handles nested case classes by ensuring the \Generic\ type class is materialized within the companion object. Previously, this derivation worked for top-level case classes and sealed traits but failed for nested ones; the updated macro implementation explicitly targets the companion object (\ModuleDef\) to inject the \Generic\ instance, enabling seamless generic programming for deeply nested data structures.

coreTestMacros/shared · high confidence

Test coverage

Added comprehensive test suites for core Shapeless operations; Added serialization and runtime reflection tests for Shapeless core types; Added serialization test utilities for Scala 2.13+; Added tests for lazy type-class cycle breaking and serialization utilities.

Dependencies

Build infrastructure updated to SBT 1.13.0 with modernized plugin versions

The build system has been upgraded to SBT 1.13.0, accompanied by significant updates to key plugins including sbt-scalajs (1.22.0), sbt-scala-native (0.5.12), sbt-ci-release (1.12.1), and sbt-mima-plugin (1.2.1). The project now utilizes sbt-github-actions (0.32.1) for CI workflows and sbt-osgi (0.10.0) for OSGi metadata generation. Additionally, a new \Boilerplate.scala\ script has been introduced to automatically generate repetitive Scala code for arities up to 22, reducing manual maintenance of tuple, function, and polymorphic instances.

project · high confidence

Updated Scala versions to 2.12.21 and 2.13.18

The build configuration has been updated to use Scala 2.12.21 and 2.13.18 as the supported cross-compilation versions. This ensures the library is built against the latest patch releases for these major Scala versions, incorporating upstream bug fixes and improvements.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 56 → 55 (-0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 73 → 70 (-3.0)
  • Architecture 90 → 99 (+8.9)
  • Maturity 48 → 48 (+0.0)
  • Readiness 52 → 50 (-2.6)
  • Security 79 → 65 (-13.9)

Resolved (2)

  • No ADRs found
  • Projects may be oversized for their cohesion

New (50)

  • Edited copies of one member (3 members, 3+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/hlists.scala)
  • Edited copies of one member (3 members, 4+ corresponding lines) (core/shared/src/main/scala/shapeless/lenses.scala)
  • Edited copies of one member (3 members, 7+ corresponding lines) (examples/src/main/scala/shapeless/examples/recursionschemes.scala)
  • Edited copies of one member (3 members, 8+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/adjoin.scala)
  • Edited copies of one member (3 members, 8+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/records.scala)
  • Edited copies of one member (4 members, 4+ corresponding lines) (core/shared/src/main/scala/shapeless/lenses.scala)
  • Edited copies of one member (4 members, 4+ corresponding lines) (core/shared/src/main/scala/shapeless/lenses.scala)
  • Edited copies of one member (4 members, 4+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/zipper.scala)
  • Edited copies of one member (4 members, 7+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/zipper.scala)
  • Edited copies of one member (4 members, 9+ corresponding lines) (core/shared/src/main/scala/shapeless/hlists.scala)
  • Edited copies of one member (6 members, 4+ corresponding lines) (core/shared/src/main/scala/shapeless/ops/tuples.scala)
  • Edited copy of a member (10 corresponding lines) (core/shared/src/main/scala/shapeless/generic1.scala)
  • Edited copy of a member (10 corresponding lines) (core/shared/src/main/scala_2.13-/shapeless/versionspecifics.scala)
  • Edited copy of a member (11 corresponding lines) (core/shared/src/main/scala/shapeless/ops/records.scala)
  • Edited copy of a member (11 corresponding lines) (examples/src/main/scala/shapeless/examples/alacache.scala)
  • Edited copy of a member (12 corresponding lines) (core/shared/src/main/scala/shapeless/ops/coproduct.scala)
  • Edited copy of a member (16 corresponding lines) (core/shared/src/main/scala/shapeless/ops/records.scala)
  • Edited copy of a member (16 corresponding lines) (examples/src/main/scala/shapeless/examples/csv.scala)
  • Edited copy of a member (25 corresponding lines) (plugin/src/main/scala_2.13+/shapeless/ShapelessPlugin.scala)
  • Edited copy of a member (3 corresponding lines) (core/shared/src/main/scala/shapeless/ops/hlists.scala)
  • …and 30 more

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • project/build.properties — 1 commit

Notable commits

  • change: Update sbt, scripted-plugin to 1.13.1 (#1487)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

milessabin/shapeless was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 5f5a3d4398174f0365bbc9e40a659c64066d15e7 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.