Skip to content

Commit 6f12e38

Browse files
authored
Fix NamedRoutes example in 0.19 changelog (#1523)
1 parent e14f445 commit 6f12e38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

servant/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ Package versions follow the [Package Versioning Policy](https://pvp.haskell.org/
4848
rootClient :: RootApi (AsClientT ClientM)
4949
rootClient = client (Proxy @API)
5050

51-
hello :: String -> ClientM String
52-
hello name = rootClient // hello /: name
51+
helloClient :: String -> ClientM String
52+
helloClient name = rootClient // hello /: name
5353

5454
endpointClient :: ClientM Person
55-
endpointClient = client // subApi /: "foobar123" // endpoint
55+
endpointClient = rootClient // subApi /: "foobar123" // endpoint
5656

5757
type Api = NamedRoutes RootApi
5858

0 commit comments

Comments
 (0)