Skip to content

Commit f71953e

Browse files
authored
Fix haddock code examples in HasClient (#1640)
1 parent c382a1f commit f71953e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

doc/cookbook/open-id-connect/OpenIdConnect.lhs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ data Customer = Customer {
330330
```
331331
332332
Here is the code that displays the homepage.
333-
It should contain a link to the the `/login` URL.
333+
It should contain a link to the `/login` URL.
334334
When the user clicks on this link it will be redirected to Google login page
335335
with some generated information.
336336

doc/cookbook/uverb/UVerb.lhs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ parsers in the hope that the ones that should will always error out so
199199
you can try until the right one returns a value.)
200200
201201
[servant-exceptions](https://github.com/ch1bo/servant-exceptions) is
202-
another shot at at the problem. It is inspired by
202+
another shot at the problem. It is inspired by
203203
servant-checked-exceptions, so it may be worth taking a closer look.
204204
The README claims that
205205
[cardano-sl](https://github.com/input-output-hk/cardano-sl) also has

servant-auth/servant-auth/src/Servant/Auth.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ instance HasLink sub => HasLink (Auth (tag :: [*]) value :> sub) where
2727

2828
-- ** Combinators
2929

30-
-- | A JSON Web Token (JWT) in the the Authorization header:
30+
-- | A JSON Web Token (JWT) in the Authorization header:
3131
--
3232
-- @Authorization: Bearer \<token\>@
3333
--

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ infixl 2 /:
902902
-- rootClient = client api
903903
--
904904
-- endpointClient :: ClientM Person
905-
-- endpointClient = client // subApi // endpoint
905+
-- endpointClient = client \/\/ subApi \/\/ endpoint
906906
-- @
907907
(//) :: a -> (a -> b) -> b
908908
x // f = f x
@@ -935,10 +935,10 @@ x // f = f x
935935
-- rootClient = client api
936936
--
937937
-- hello :: String -> ClientM String
938-
-- hello name = rootClient // hello /: name
938+
-- hello name = rootClient \/\/ hello \/: name
939939
--
940940
-- endpointClient :: ClientM Person
941-
-- endpointClient = client // subApi /: "foobar123" // endpoint
941+
-- endpointClient = client \/\/ subApi \/: "foobar123" \/\/ endpoint
942942
-- @
943943
(/:) :: (a -> b -> c) -> b -> a -> c
944944
(/:) = flip

servant-docs/src/Servant/Docs/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ docsWith opts intros (ExtraInfo endpoints) p =
447447
& apiEndpoints %~ HM.unionWith (flip combineAction) endpoints
448448

449449

450-
-- | Generate the docs for a given API that implements 'HasDocs' with with any
450+
-- | Generate the docs for a given API that implements 'HasDocs' with any
451451
-- number of introduction(s)
452452
docsWithIntros :: HasDocs api => [DocIntro] -> Proxy api -> API
453453
docsWithIntros intros = docsWith defaultDocOptions intros mempty

0 commit comments

Comments
 (0)