hearth-enum-rules
OfficialFast, safe derivation for sealed traits and enums
Software Engineering#dispatch#hearth#type-class-derivation#enum-derivation#sealed-traits#scala-3-enums#macro-derivation
Authorkubuszok
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Streamlines derivation of type-class instances for sealed traits and Scala 3 enums using Hearth's Enum.parse API, enabling exhaustive pattern matching and consistent error messages across Scala versions.
Core Features & Use Cases
- Derive type-class instances for sealed hierarchies and Scala 3 enums via Enum.parse and per-case dispatch.
- Distinguish singleton enum cases from case classes and handle recursive structures with supported tricks.
- Support discriminator-style decoding in streaming codecs and wrapper inline modes for nested data.
- Use in codebases that target Scala 2.13 or Scala 3, with forwards-compatibility and macro-based derivation.
Quick Start
Instantiate Enum.parse on your sealed trait or Scala 3 enum and combine per-case derivations with parMatchOn to cover all cases.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hearth-enum-rules Download link: https://github.com/kubuszok/kindlings/archive/main.zip#hearth-enum-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.