git.iko.soy/typeable/servant
on master help sign in
Fix haddock documentation for (//) and (/:)

The examples for these two operators weren't displayed properly due to invalid Haddock markup.

commit0c80bc8f8ea413890710e58f7c313db0d8b5f6fe authorGaël Deest <gael.deest@tweag.io> dateMon 21 Mar 2022, 14:18 (5 years ago) parentde923fc
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