Registry / utility / derive4j-annotation

derive4j-annotation

JSON →
library1.1.1javamavenunverified

Derive4J Annotation provides annotations and API for deriving algebraic data types, constructors, morphisms, optics, and typeclasses in Java.

<dependency> <groupId>org.derive4j</groupId> <artifactId>derive4j-annotation</artifactId> <version>1.1.1</version> </dependency>
INSTALL
IMPORT
SIG · DERIVE4J-ANNOTATIO
D
derive4j-annotation
utilityjavav1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Data
✓ org.derive4j.Data

Define an algebraic data type using @Data annotation.

import org.derive4j.Data; import org.derive4j.Flavour; @Data public interface Tree<A> { <X> X match(Cases<A, X> cases); interface Cases<A, X> { X leaf(A value); X node(Tree<A> left, Tree<A> right); } }
Debug
Known issues
gotchaRequires annotation processing to be enabled in the build (e.g., Maven compiler plugin).
fix
Add maven-compiler-plugin with annotation processor paths or use IDE annotation processing.
affects: >=1.0.0
Upgrade
Version history
1.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
derive4j-annotation — mvn dependency:get derive4j-annotation · libregistry