git.iko.soy/typeable/servant
on master help sign in
Fix NamedRoutes example in 0.19 changelog (#1523)
6f12e38Clément Delafargue
servant/CHANGELOG.md+3−3
@@ -48,11 +48,11 @@ Package versions follow the [Package Versioning Policy](https://pvp.haskell.org/
48 rootClient :: RootApi (AsClientT ClientM)
48 rootClient :: RootApi (AsClientT ClientM)
49 rootClient = client (Proxy @API)
49 rootClient = client (Proxy @API)
50
50
51− hello :: String -> ClientM String
51+ helloClient :: String -> ClientM String
52− hello name = rootClient // hello /: name
52+ helloClient name = rootClient // hello /: name
53
53
54 endpointClient :: ClientM Person
54 endpointClient :: ClientM Person
55− endpointClient = client // subApi /: "foobar123" // endpoint
55+ endpointClient = rootClient // subApi /: "foobar123" // endpoint
56
56
57 type Api = NamedRoutes RootApi
57 type Api = NamedRoutes RootApi
58
58