Skip to content

Commit 0c80bc8

Browse files
author
Gaël Deest
committed
Fix haddock documentation for (//) and (/:)
The examples for these two operators weren't displayed properly due to invalid Haddock markup.
1 parent de923fc commit 0c80bc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

servant-client-core/src/Servant/Client/Core/HasClient.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
900900
x // 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

0 commit comments

Comments
 (0)