git.iko.soy/typeable/servant
on master help sign in
Merge pull request #1566 from haskell-servant/fix-operator-doc

Fix haddock documentation for (//) and (/:)

commitaf3dde1b1da84889876094c31a131eb9dcc3da9f authorGaël Deest <gael.deest@tweag.io> dateMon 21 Mar 2022, 16:14 (5 years ago) parent626e1c30c80bc8
1 file changed+4−4
servant-client-core/src/Servant/Client/Core/HasClient.hs+4−4
servant-client-core/src/Servant/Client/Core/HasClient.hs+4−4
@@ -874,7 +874,7 @@ infixl 2 /:
874874--
875875-- Example:
876876--
877−-- @@
877+-- @
878878-- type Api = NamedRoutes RootApi
879879--
880880-- data RootApi mode = RootApi
@@ -895,7 +895,7 @@ infixl 2 /:
895895--
896896-- endpointClient :: ClientM Person
897897-- endpointClient = client // subApi // endpoint
898−-- @@
898+-- @
899899(//) :: a -> (a -> b) -> b
900900x // f = f x
901901
@@ -906,7 +906,7 @@ x // f = f x
906906--
907907-- Example:
908908--
909−-- @@
909+-- @
910910-- type Api = NamedRoutes RootApi
911911--
912912-- data RootApi mode = RootApi
@@ -931,7 +931,7 @@ x // f = f x
931931--
932932-- endpointClient :: ClientM Person
933933-- endpointClient = client // subApi /: "foobar123" // endpoint
934−-- @@
934+-- @
935935(/:) :: (a -> b -> c) -> b -> a -> c
936936(/:) = flip
937937