Skip to content

Commit 2daae80

Browse files
authoredJan 9, 2023
Add (basic) API docs for ServerT (#1573)
1 parent a226009 commit 2daae80

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎changelog.d/1573

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
synopsis: Add API docs for ServerT
2+
prs: #1573

‎servant-server/src/Servant/Server/Internal.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ import Servant.API.TypeLevel
116116
(AtLeastOneFragment, FragmentUnique)
117117

118118
class 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 ::

0 commit comments

Comments
 (0)