Fix NamedRoutes example in 0.19 changelog (#1523)

This commit is contained in:
Clément Delafargue 2022-02-03 09:56:19 +01:00 committed by GitHub
parent e14f445e2a
commit 6f12e38698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,11 +48,11 @@ Package versions follow the [Package Versioning Policy](https://pvp.haskell.org/
rootClient :: RootApi (AsClientT ClientM) rootClient :: RootApi (AsClientT ClientM)
rootClient = client (Proxy @API) rootClient = client (Proxy @API)
hello :: String -> ClientM String helloClient :: String -> ClientM String
hello name = rootClient // hello /: name helloClient name = rootClient // hello /: name
endpointClient :: ClientM Person endpointClient :: ClientM Person
endpointClient = client // subApi /: "foobar123" // endpoint endpointClient = rootClient // subApi /: "foobar123" // endpoint
type Api = NamedRoutes RootApi type Api = NamedRoutes RootApi