Added NamedRoutes to servant-foreign
This commit is contained in:
parent
b3214eac38
commit
ad27e74273
1 changed files with 7 additions and 0 deletions
|
@ -515,6 +515,13 @@ instance HasForeign lang ftype api
|
||||||
foreignFor lang ftype Proxy req =
|
foreignFor lang ftype Proxy req =
|
||||||
foreignFor lang ftype (Proxy :: Proxy api) req
|
foreignFor lang ftype (Proxy :: Proxy api) req
|
||||||
|
|
||||||
|
instance HasForeign lang ftype (ToServantApi r) => HasForeign lang ftype (NamedRoutes r) where
|
||||||
|
type Foreign ftype (NamedRoutes r) = Foreign ftype (ToServantApi r)
|
||||||
|
|
||||||
|
foreignFor lang ftype Proxy req =
|
||||||
|
foreignFor lang ftype (Proxy :: Proxy (ToServantApi r)) req
|
||||||
|
|
||||||
|
|
||||||
-- | Utility class used by 'listFromAPI' which computes
|
-- | Utility class used by 'listFromAPI' which computes
|
||||||
-- the data needed to generate a function for each endpoint
|
-- the data needed to generate a function for each endpoint
|
||||||
-- and hands it all back in a list.
|
-- and hands it all back in a list.
|
||||||
|
|
Loading…
Reference in a new issue