Traits
CommunityMaster equality, hashing, and ordering in Effect.
Authorandrueandersoncs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers often need clear, reliable semantics for equality, hashing, and ordering when working with Effect-TS. This skill provides guidance on implementing Equal, Hash, Equivalence, and Order, ensuring consistent behavior across value objects and collections.
Core Features & Use Cases
- Equal and Hash integration: Use Data.Class to automatically derive equality and hash behavior for domain types.
- Custom equivalence and ordering: Compose custom equivalence relations and ordering strategies for complex data.
- Use Case: Create a value object like Point with deterministic equality and stable sorting in sets and maps.
Quick Start
Create a simple Point type using Data.Class and compare two instances for equality.
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: Traits Download link: https://github.com/andrueandersoncs/claude-skill-effect-ts/archive/main.zip#traits 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 223,000+ vetted skills library on demand.