git.iko.soy/rowtype-yoga/purescript-lazy-joe
on main help sign in
Fix readme
commitc90c830ee0aaba597a87741af2edfce3157b46af authorsigma-andex <77549848+sigma-andex@users.noreply.github.com> dateSat 18 Jun 2022, 11:33 (4 years ago) parentb816f1a
1 file changed+2−2
README.md+2−2
README.md+2−2
@@ -93,7 +93,7 @@ Running it will print:
9393
9494### Uncurried functions
9595
96−js typically uses uncurried functions (e.g. `f(a,b,c) `) instead of uncurried functions (e.g. `f(a)(b)(c)` ) like purescript. Use `curried` to use the uncurried js function as a curried purescript function:
96+js typically uses uncurried functions (e.g. `f(a,b,c) `) instead of curried functions (e.g. `f(a)(b)(c)` ) like purescript. Use `curried` to use the uncurried js function as a curried purescript function:
9797
9898```
9999result = curried myFunc arg1 arg2 arg3
@@ -211,7 +211,7 @@ Clearly, `post` is an effectful function, as it triggers a promise. So in puresc
211211main :: Effect Unit
212212main = launchAff_ do
213213 { post } <- fromDefault "got"
214− resp <- Promise.toAffE $ effectful (uncurried post) "https://httpbin.org/anything" { json: { hello: "🌎" } } >>= \{ json } -> json
214+ resp <- Promise.toAffE $ effectful (curried post) "https://httpbin.org/anything" { json: { hello: "🌎" } } >>= \{ json } -> json
215215 log resp.json
216216```
217217