Fix docs: emptyAPIServer -> emptyServer (#1344)
This commit is contained in:
parent
e3a29addf4
commit
e364470dd9
1 changed files with 2 additions and 2 deletions
|
@ -750,12 +750,12 @@ data EmptyServer = EmptyServer deriving (Typeable, Eq, Show, Bounded, Enum)
|
||||||
emptyServer :: ServerT EmptyAPI m
|
emptyServer :: ServerT EmptyAPI m
|
||||||
emptyServer = Tagged EmptyServer
|
emptyServer = Tagged EmptyServer
|
||||||
|
|
||||||
-- | The server for an `EmptyAPI` is `emptyAPIServer`.
|
-- | The server for an `EmptyAPI` is `emptyServer`.
|
||||||
--
|
--
|
||||||
-- > type MyApi = "nothing" :> EmptyApi
|
-- > type MyApi = "nothing" :> EmptyApi
|
||||||
-- >
|
-- >
|
||||||
-- > server :: Server MyApi
|
-- > server :: Server MyApi
|
||||||
-- > server = emptyAPIServer
|
-- > server = emptyServer
|
||||||
instance HasServer EmptyAPI context where
|
instance HasServer EmptyAPI context where
|
||||||
type ServerT EmptyAPI m = Tagged m EmptyServer
|
type ServerT EmptyAPI m = Tagged m EmptyServer
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue