We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaeee88 commit a082794Copy full SHA for a082794
servant-foreign/src/Servant/Foreign/Internal.hs
@@ -515,6 +515,13 @@ instance HasForeign lang ftype api
515
foreignFor lang ftype Proxy req =
516
foreignFor lang ftype (Proxy :: Proxy api) req
517
518
+instance HasForeign lang ftype (ToServantApi r) => HasForeign lang ftype (NamedRoutes r) where
519
+ type Foreign ftype (NamedRoutes r) = Foreign ftype (ToServantApi r)
520
+
521
+ foreignFor lang ftype Proxy req =
522
+ foreignFor lang ftype (Proxy :: Proxy (ToServantApi r)) req
523
524
525
-- | Utility class used by 'listFromAPI' which computes
526
-- the data needed to generate a function for each endpoint
527
-- and hands it all back in a list.
0 commit comments