Skip to content

Commit

Permalink
Add (basic) API docs for ServerT (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
isomorpheme committed Jan 9, 2023
1 parent a226009 commit 2daae80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/1573
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
synopsis: Add API docs for ServerT
prs: #1573
4 changes: 4 additions & 0 deletions servant-server/src/Servant/Server/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ import Servant.API.TypeLevel
(AtLeastOneFragment, FragmentUnique)

class HasServer api context where
-- | The type of a server for this API, given a monad to run effects in.
--
-- Note that the result kind is @*@, so it is /not/ a monad transformer, unlike
-- what the @T@ in the name might suggest.
type ServerT api (m :: * -> *) :: *

route ::
Expand Down

0 comments on commit 2daae80

Please sign in to comment.