forked from loafle/openapi-generator-original
[haskell] fix exampe code in generated README.md (#16142)
* [haskell] fix exampe code in generated README.md
Since create{{title}}Client is not a monadic action, we need to use
"let" instead of "<-".
* regenerate samples
This commit is contained in:
@@ -50,7 +50,7 @@ main = do
|
||||
manager <- newManager tlsManagerSettings
|
||||
|
||||
-- Create the client (all endpoint functions will be available)
|
||||
OpenAPIPetstoreBackend{..} <- API.createOpenAPIPetstoreClient
|
||||
let OpenAPIPetstoreBackend{..} = API.createOpenAPIPetstoreClient
|
||||
|
||||
-- Any OpenAPIPetstore API call can go here, e.g. here we call `getSomeEndpoint`
|
||||
API.callOpenAPIPetstore (mkClientEnv manager url) getSomeEndpoint
|
||||
|
||||
Reference in New Issue
Block a user