For constructors that take a concrete record of dependencies (a subset of the whole set of components), a depRecord function could extract the record from the set of components.
Related to the idea (#37) of ditching the use of Has in component definitions. depRecord (and dep) would only be used in the composition root, not in the component constructors.
For constructors that take a concrete record of dependencies (a subset of the whole set of components), a
depRecord
function could extract the record from the set of components.Related to the idea (#37) of ditching the use of
Has
in component definitions.depRecord
(anddep
) would only be used in the composition root, not in the component constructors.