Skip to main content

implement-command

Implements a NeoHaskell COMMAND module at Commands/Name.hs — the record, getEntityId, a three-argument decide function, EntityOf and TransportsOf type instances, and the command TH macro. Use in the GREEN phase after neohaskell-domain-modeling stubbed the types and write-unit-tests left a failing Decider spec. Also use when asked to add a command, implement or fill in decide logic, replace a decide panic stub, handle a verified command node, or distinguish a create command (getEntityId Nothing, acceptNew) from an update command (getEntityId Just, acceptExisting). Do NOT use for the EVENT payload module or entity update fold (implement-event-and-update-entity), the query/combine module (implement-query), the integration handler (implement-integration), or registering the endpoint (wire-feature). This is NeoHaskell — the reader defaults to IO, pure, Either, and dollar-sign application; all of those are wrong here.

الانتقال إلى التثبيت

معلومات المصدر

المستودع
neohaskell/skills
آخر نشاط في المصدر
١ يوليو ٢٠٢٦ في ٢٢:٠٢
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٠
التفرعات
٠

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.