Merge pull request #1566 from haskell-servant/fix-operator-doc
Fix haddock documentation for (//) and (/:)
This commit is contained in:
commit
af3dde1b1d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue