File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import Network.HTTP.Affjax (affjax, defaultRequest)
37
37
38
38
main = launchAff $ do
39
39
res <- affjax $ defaultRequest { url = "/api", method = Left GET }
40
- liftEff $ log $ "GET /api response: " ++ res.response
40
+ liftEff $ log $ "GET /api response: " <> res.response
41
41
```
42
42
43
43
(` defaultRequest ` is a record value that has all the required fields pre-set for convenient overriding when making a request.)
@@ -49,10 +49,10 @@ import Network.HTTP.Affjax (get, post)
49
49
50
50
main = launchAff $ do
51
51
res1 <- get "/api"
52
- liftEff $ log $ "GET /api response: " ++ res1.response
52
+ liftEff $ log $ "GET /api response: " <> res1.response
53
53
54
54
res2 <- post "/api" someData
55
- liftEff $ log $ "POST /api response: " ++ res2.response
55
+ liftEff $ log $ "POST /api response: " <> res2.response
56
56
```
57
57
58
58
See the module documentation for a full list of these helpers.
You can’t perform that action at this time.
0 commit comments