Formless 3 has been released and is available in the
psc-0.14.7-20220303 package set.
This release entirely rewrites the library into a single file. It removes many rough edges from Formless 2 (no more
spec, no more proxies, no more unwrapping & wrapping newtypes, no more
Initial type class, no more
injQuery, no more
Validation type), and gives you much more control over validation and handling events that arise from the Formless component. Most importantly, you can now run validation within the context of your form component’s
HalogenM directly, which means your validation functions have full access to the component state including all the form fields.
Check out the new library here:
You can also see some other resources:
- The new examples demonstrating how to write forms.
- The PR that implemented Formless 3, which includes a full description of what’s changed.
- The PR that migrated Real World Halogen to use Formless 3.