on master help sign in
Add (basic) API docs for ServerT (#1573)
2daae80Daan Rijks
changelog.d/1573new file+2
@@ -0,0 +1,2 @@
1+synopsis: Add API docs for ServerT
2+prs: #1573
servant-server/src/Servant/Server/Internal.hs+4
@@ -116,6 +116,10 @@ import Servant.API.TypeLevel
116 (AtLeastOneFragment, FragmentUnique)
116 (AtLeastOneFragment, FragmentUnique)
117
117
118class HasServer api context where
118class HasServer api context where
119+ -- | The type of a server for this API, given a monad to run effects in.
120+ --
121+ -- Note that the result kind is @*@, so it is /not/ a monad transformer, unlike
122+ -- what the @T@ in the name might suggest.
119 type ServerT api (m :: * -> *) :: *
123 type ServerT api (m :: * -> *) :: *
120
124
121 route ::
125 route ::