aeson-schemas: Safely extract JSON data when data types are too cumbersome
summary
aeson-schemas provides quasiquoters that define JSON schemas at the type-level and a get quasiquoter to extract values, letting GHC check keys at compile time instead of creating a separate Haskell type per JSON level. It plugs into aeson, parses into an Object storing Dynamics in a HashMap, uses Template Haskell and type families (first-class families) to infer schemaResult types, yields helpful compile and runtime errors, and decodes GraphQL-shaped responses successfully.
AI-written summary · about
