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.