CodeGen with Types, for Humans, by Humans
summary
A codegen engine written in Elm generates readable, type-safe Elm code for Vendr’s GraphQL and UI needs, automatically handling imports and formatting, emitting builtin typechecker results and generated examples for every API surface. It produces hundreds of thousands of generated lines used in production, detects API changes at compile time, creates example usage for fuzzing, and integrates with Elm package metadata so calls to existing libraries compile and run without special tooling.
AI-written summary · about
chapters (17)
- 0:00Start
- 1:17What Is a Macro
- 3:02Writing Macros
- 9:32Dead Code Elimination
- 17:24Aligning to Your User Intention
- 18:18Edge Cases
- 22:37Generating Functions
- 23:52Generated Functions
- 25:02Calling External Functions
- 26:07Does Html Actually Exist as a Module
- 30:43Convenience Gradient
- 34:35Mgql
- 38:46Example Generation
- 40:29Dev Demo
- 42:57Mini Markdown Parser
- 44:04Full Parser
- 44:38Visibility Values








