Fix NamedRoutes example in 0.19 changelog

This commit is contained in:
Clément Delafargue 2022-02-03 09:39:40 +01:00 committed by GitHub
parent e14f445e2a
commit cbab88129d
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 = 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