Skip to content

Commit

Permalink
Merge pull request #1566 from haskell-servant/fix-operator-doc
Browse files Browse the repository at this point in the history
Fix haddock documentation for (//) and (/:)
  • Loading branch information
Gaël Deest committed Mar 21, 2022
2 parents 626e1c3 + 0c80bc8 commit af3dde1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions servant-client-core/src/Servant/Client/Core/HasClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ infixl 2 /:
--
-- Example:
--
-- @@
-- @
-- type Api = NamedRoutes RootApi
--
-- data RootApi mode = RootApi
Expand All @@ -895,7 +895,7 @@ infixl 2 /:
--
-- endpointClient :: ClientM Person
-- endpointClient = client // subApi // endpoint
-- @@
-- @
(//) :: a -> (a -> b) -> b
x // f = f x

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

Expand Down

0 comments on commit af3dde1

Please sign in to comment.