From 8336fc96d564e26b9b72e0498b2a1c29050734c4 Mon Sep 17 00:00:00 2001 From: Jakob Demler Date: Sat, 15 Sep 2018 01:36:09 +0200 Subject: [PATCH] fix some curl-mock typos --- doc/cookbook/curl-mock/CurlMock.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cookbook/curl-mock/CurlMock.lhs b/doc/cookbook/curl-mock/CurlMock.lhs index ee69bc2a..a77c7917 100644 --- a/doc/cookbook/curl-mock/CurlMock.lhs +++ b/doc/cookbook/curl-mock/CurlMock.lhs @@ -4,7 +4,7 @@ In this example we will generate curl requests with mock post data from a servan This may be usefull for testing and development purposes. Especially post requests with a request body are tedious to send manually. -Also, we will learn how to use the servant-forein library to generate stuff from servant APIs. +Also, we will learn how to use the servant-foreign library to generate stuff from servant APIs. Language extensions and imports: @@ -134,7 +134,7 @@ generateCurl p host = $ listFromAPI (Proxy :: Proxy NoLang) (Proxy :: Proxy Mocked) p ``` -To understand the, better start at the end: +To understand this function, better start at the end: `listFromAPI` gives us a list of endpoints. We iterate over them (`foldr`) and call `generateEndpoint` for every endpoint.