You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a huge number of boilerplate RowToList classes used to produce various transformations on heterogeneous records. This involves lots of code duplication and non-obvious type class errors for end users, and it's easy to get the constraints wrong and only realize the error later (the class will compile, but not work as expected once put into use on a particular record).
For example, there are 4 variations on essentially this same class:
Fortunately, @natefaubion has released purescript-heterogeneous, which might provide a way to replace a few of these classes with more straightforward, less-boilerplatey implementations.
The text was updated successfully, but these errors were encountered:
It would be ideal if this allowed Formless to reduce the number of constraints present on the component and various helper functions in order to speed up compilation times.
Unable to implement, in the end, due to issues with functional dependencies and using heterogeneous as component constraints. Reverted to the original RowList approach.
Environment
purescript-halogen
4.0.0purescript-halogen-formless
0.2.0Problem
There are a huge number of boilerplate
RowToList
classes used to produce various transformations on heterogeneous records. This involves lots of code duplication and non-obvious type class errors for end users, and it's easy to get the constraints wrong and only realize the error later (the class will compile, but not work as expected once put into use on a particular record).For example, there are 4 variations on essentially this same class:
Solution
Fortunately, @natefaubion has released purescript-heterogeneous, which might provide a way to replace a few of these classes with more straightforward, less-boilerplatey implementations.
The text was updated successfully, but these errors were encountered: