Add (basic) API docs for ServerT (#1573)
This commit is contained in:
parent
a22600979a
commit
2daae80ea8
2 changed files with 6 additions and 0 deletions
2
changelog.d/1573
Normal file
2
changelog.d/1573
Normal file
|
@ -0,0 +1,2 @@
|
|||
synopsis: Add API docs for ServerT
|
||||
prs: #1573
|
|
@ -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 ::
|
||||
|
|
Loading…
Reference in a new issue