shroom-class

Type-description classes and Template Haskell for shroom

Stackage Nightly 2026-11-30:0.1.0.0
Latest on Hackage:0.1.0.0

See all snapshots shroom-class appears in

BSD-3-Clause licensed by Manuel Bärenz
Maintained by [email protected]
This version can be pinned in stack with:shroom-class-0.1.0.0@sha256:818594613ed237e362c0b0edd388d004ee4a6112b86555290502963bb993d87e,2282

Module documentation for 0.1.0.0

shroom-class holds the type-description classes of shroom: Describable names a type for a model, and Surveyable adds the properties its values must satisfy, as pure Haskell functions, and example values. Template Haskell derives Describable from Haddock comments and type, constructor and field names, so what a human reader sees of a type is the description the model reads, and an empty Surveyable instance does the rest. The package has no prompting runtime and depends on no HTTP client and no effect system. It is the base of shroom, which runs prompts, and of shroom-baikai, which connects them to a real model.

Changes

Revision history for shroom-class

0.1.0.0 – 2026-11-27

  • First release. The classes that describe a type to a language model, Describable and Surveyable, and the Template Haskell that derives Describable from a type’s Haddocks.