Haskell JSON

Serialize and deserialize Haskell types to JSON with Aeson. Covers the TaggedObject discriminator pattern for sum types, fieldLabelModifier to strip record prefixes, manual ToJSON/FromJSON for constructors without record syntax, omitNothingFields, and the generic vs manual decision. Use when writing Aeson instances, customizing JSON shape for sum types, or making serialization consistent across a codebase.

ivelten Updated

File contents

ivelten/claude-haskell-skills/tree/main/plugins/haskell/skills/haskell-json commit 7f4c3011c8

Frequently asked questions

npx skillmds@latest add ivelten/haskell-json