on master help sign in
Add (basic) API docs for ServerT (#1573)
commit2daae80ea8790147b2589e047ca8b209f20b51b4 authorDaan Rijks <daanrijks@pm.me> dateMon 9 Jan 2023, 17:05 (4 years ago) parenta226009
2 files changed+6
changelog.d/1573+2 servant-server/src/Servant/Server/Internal.hs+4
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
116116 (AtLeastOneFragment, FragmentUnique)
117117
118118class 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.
119123 type ServerT api (m :: * -> *) :: *
120124
121125 route ::