@@ -37,6 +37,8 @@ module Servant.API.Generic (
3737 ToServant,
3838 toServant,
3939 fromServant,
40+ -- * NamedRoutes combinator
41+ NamedRoutes,
4042 -- * AsApi
4143 AsApi,
4244 ToServantApi,
@@ -120,6 +122,9 @@ genericApi
120122 -> Proxy (ToServantApi routes)
121123genericApi _ = Proxy
122124
125+-- | Combinator for embedding a record of named routes into a Servant API type.
126+data NamedRoutes (api :: * -> *)
127+
123128-------------------------------------------------------------------------------
124129-- Class
125130-------------------------------------------------------------------------------