Open fisx opened 3 months ago
the down side i guess is that the constraints will say HasClient
, and the instances will be of HasClient'
. not entirely pretty.
or we could drop HasClient
and always add an explicit RunClient
where needed, also where the instance is used?
For unit-testing, we need
HasClient
instance that gives usclientWithRoute
, but the instance does not require aRunClient
instance.The easy solution is to write a
RunClient
instance usingundefined
, but it would be nicer to keep separate things separate:... and then require
RunClient
where necessary in order to implement theHasClient'
instance, instead of in the class.Any concerns or objections? If not I may make a PR.
(ping @pcapriotti)