Skip to main content

implement-query

Implements a NeoHaskell QUERY / read-model module at Queries/Name.hs — the record, Json and ToSchema instances, canAccess and canView auth functions, the deriveQuery macro, and a hand-written QueryOf instance whose combine returns Update, NoOp, or Delete. Use in the GREEN phase after neohaskell-domain-modeling stubbed the types and write-unit-tests left a failing Projection spec. Also use when asked to add a read model, implement or fill in combine logic, replace a projection panic stub, handle a verified query node, or set up per-instance access control. Both canAccess and canView are required — deriveQuery fails to compile if either is missing. Do NOT use for the command/decide module (implement- command), the event payload (implement-event-and-update-entity), the integration handler (implement-integration), or wiring (wire-feature). This is NeoHaskell — IO, Data.Aeson, Either, and unqualified list functions are all wrong here.

Aller à l'installation

Informations de source

Dépôt
neohaskell/skills
Dernière activité de la source
3 juillet 2026 à 11:07
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.