@@ -4,7 +4,7 @@ In this example we will generate curl requests with mock post data from a servan
4This may be usefull for testing and development purposes.
4This may be usefull for testing and development purposes.
5Especially post requests with a request body are tedious to send manually.
5Especially post requests with a request body are tedious to send manually.
7−Also, we will learn how to use the servant-forein library to generate stuff from servant APIs.
7+Also, we will learn how to use the servant-foreign library to generate stuff from servant APIs.
10Language extensions and imports:
10Language extensions and imports:
@@ -134,7 +134,7 @@ generateCurl p host =
134 $ listFromAPI (Proxy :: Proxy NoLang) (Proxy :: Proxy Mocked) p
134 $ listFromAPI (Proxy :: Proxy NoLang) (Proxy :: Proxy Mocked) p
137−To understand the, better start at the end:
137+To understand this function, better start at the end:
139`listFromAPI` gives us a list of endpoints. We iterate over them (`foldr`) and call `generateEndpoint` for every endpoint.
139`listFromAPI` gives us a list of endpoints. We iterate over them (`foldr`) and call `generateEndpoint` for every endpoint.