Closed paluh closed 4 years ago
Another question which can be raised is - could we work with Variants
in such a case and provide a preset of fields and widgets (like simple text input, multitext input) but allow extending this preset with custom types too but still provide the above instances implementation for our contrib subset.
We are using fully polymorphic field
now without exposing input
or result
.
If we consider "MultiField" widgets which should be well typed - I mean contain specific and well structured access to its
input
andresult
we can think of switching inForms.Layout.Layout
from:into
I hope that by requiring
BiFoldable
,BiTraversable
andBifunctor
instances on thisfield
we can provide sensible layout and form related implementations of the validation process, but not only for single value fields but also for such multifield widgets.