Merge pull request #1566 from haskell-servant/fix-operator-doc

Fix haddock documentation for (//) and (/:)
This commit is contained in:
Gaël Deest 2022-03-21 16:14:47 +01:00 committed by GitHub
commit af3dde1b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -874,7 +874,7 @@ infixl 2 /:
--
-- Example:
--
-- @@
-- @
-- type Api = NamedRoutes RootApi
--
-- data RootApi mode = RootApi
@ -895,7 +895,7 @@ infixl 2 /:
--
-- endpointClient :: ClientM Person
-- endpointClient = client // subApi // endpoint
-- @@
-- @
(//) :: a -> (a -> b) -> b
x // f = f x
@ -906,7 +906,7 @@ x // f = f x
--
-- Example:
--
-- @@
-- @
-- type Api = NamedRoutes RootApi
--
-- data RootApi mode = RootApi
@ -931,7 +931,7 @@ x // f = f x
--
-- endpointClient :: ClientM Person
-- endpointClient = client // subApi /: "foobar123" // endpoint
-- @@
-- @
(/:) :: (a -> b -> c) -> b -> a -> c
(/:) = flip