git.iko.soy/typeable/servant
on master help sign in
fix some curl-mock typos
commit8336fc96d564e26b9b72e0498b2a1c29050734c4 authorJakob Demler <jdemler@curry-software.com> dateSat 15 Sep 2018, 01:36 (8 years ago) parent765b62b
1 file changed+2−2
doc/cookbook/curl-mock/CurlMock.lhs+2−2
doc/cookbook/curl-mock/CurlMock.lhs+2−2
@@ -4,7 +4,7 @@ In this example we will generate curl requests with mock post data from a servan
44This may be usefull for testing and development purposes.
55Especially post requests with a request body are tedious to send manually.
66
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.
88
99
1010Language extensions and imports:
@@ -134,7 +134,7 @@ generateCurl p host =
134134 $ listFromAPI (Proxy :: Proxy NoLang) (Proxy :: Proxy Mocked) p
135135```
136136
137−To understand the, better start at the end:
137+To understand this function, better start at the end:
138138
139139`listFromAPI` gives us a list of endpoints. We iterate over them (`foldr`) and call `generateEndpoint` for every endpoint.
140140