Skip to content

Commit

Permalink
Fix NamedRoutes example in 0.19 changelog (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed Feb 3, 2022
1 parent e14f445 commit 6f12e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servant/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ Package versions follow the [Package Versioning Policy](https://pvp.haskell.org/
rootClient :: RootApi (AsClientT ClientM)
rootClient = client (Proxy @API)

hello :: String -> ClientM String
hello name = rootClient // hello /: name
helloClient :: String -> ClientM String
helloClient name = rootClient // hello /: name

endpointClient :: ClientM Person
endpointClient = client // subApi /: "foobar123" // endpoint
endpointClient = rootClient // subApi /: "foobar123" // endpoint

type Api = NamedRoutes RootApi

Expand Down

0 comments on commit 6f12e38

Please sign in to comment.