File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
servant-server/src/Servant/Server Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ instance GenericMode (AsServerT m) where
31
31
32
32
type AsServer = AsServerT Handler
33
33
34
- -- | Transform record of routes into a WAI 'Application'.
34
+ -- | Transform a record of routes into a WAI 'Application'.
35
35
genericServe
36
36
:: forall routes .
37
37
( HasServer (ToServantApi routes ) '[]
@@ -80,13 +80,17 @@ genericServeTWithContext f server ctx =
80
80
p = genericApi (Proxy :: Proxy routes )
81
81
pctx = Proxy :: Proxy ctx
82
82
83
- -- | Transform record of endpoints into a 'Server'.
83
+ -- | Transform a record of endpoints into a 'Server'.
84
84
genericServer
85
85
:: GenericServant routes AsServer
86
86
=> routes AsServer
87
87
-> ToServant routes AsServer
88
88
genericServer = toServant
89
89
90
+ -- | Transform a record of endpoints into a @'ServerT' m@.
91
+ --
92
+ -- You can see an example usage of this function
93
+ -- <https://docs.servant.dev/en/stable/cookbook/generic/Generic.html#using-generics-together-with-a-custom-monad in the Servant Cookbook>.
90
94
genericServerT
91
95
:: GenericServant routes (AsServerT m )
92
96
=> routes (AsServerT m )
You can’t perform that action at this time.
0 commit comments