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
@tchoutri@divarvel does this look good to raise a PR (except the toS stuff, of course):
instance (KnownSymbolsym, ToDeepQueryrecord, HasLinksub) =>HasLink (DeepQuerysymrecord:>sub) wheretypeMkLink (DeepQuerysymrecord:>sub) a=record->MkLinksuba-- toLink :: (Link -> a) -> Proxy endpoint -> Link -> MkLink endpoint a
toLink toA _ lnk record =
toLink toA (Proxy@sub) $ addParams lnk
wherek::Text
k = toS $ symbolVal (Proxy@sym)
mkSingleParam x =let (a, b) = generateDeepParam k x
inSingleParam (toS a) (toS $ escapeURIString isUnreserved $ toS $ fromMaybe "" b)
addParams lnk =DL.foldl' (\memo x -> addQueryParam (mkSingleParam x) memo) lnk $
toDeepQuery record
Also, why does ToDeepQuery deal with Text when inserting the results into the actual Link would force one to convert them to String?
Upgraded to
servant-server-0.20.2
to specifically use the new DeepQuery feature, however, got the following compilation error upon using it:The text was updated successfully, but these errors were encountered: