Skip to main content

neohaskell-records-and-json

The NeoHaskell RECORDS and JSON cheatsheet: the 'data X = X { ... } deriving (Generic)' pattern, EMPTY 'instance Json.FromJSON X' / 'instance Json.ToJSON X' (never deriving/TH/anyclass, never hand-written toJSON/parseJSON), 'instance ToSchema X' on query read models only, dot-access (rec.field) under NoFieldSelectors instead of selector-as- function (field rec), and 'import Json qualified' instead of 'import Data.Aeson'. Use when defining a record, adding JSON serialization, or reviewing code for vanilla-Aeson or field-selector reflexes. Do NOT use for the full backward-compatible ADD-A-FIELD-to-an- existing-entity operation with a snapshot-tolerant decoder (expand-entity owns that), Array/Map/Text ops (neohaskell-collections), the import-Core header/operators (neohaskell- core-prelude), or designing domain value objects (neohaskell-domain-modeling). Load before implement-event-and-update-entity, expand-entity, implement-command, and implement-query.

설치로 이동

소스 정보

저장소
neohaskell/skills
최근 소스 활동
2026년 7월 1일 22:02
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.