git.iko.soy/rowtype-yoga/psfp
on 3d6eb2f help sign in
37 lines 959 B history raw
1// Generated by purs version 0.13.6
2"use strict";
3var $foreign = require("./foreign.js");
4var Control_Promise = require("../Control.Promise/index.js");
5var URL = function (x) {
6 return x;
7};
8var statusCode = function (response) {
9 return response.status;
10};
11var postMethod = "POST";
12var json = function (res) {
13 return Control_Promise.toAffE($foreign.jsonImpl(res));
14};
15var fromRecord = function (dictHomogeneous) {
16 return $foreign.fromRecordImpl;
17};
18var makeHeaders = function (dictHomogeneous) {
19 return fromRecord();
20};
21var fetch = function (impl) {
22 return function (dictUnion) {
23 return function (url$prime) {
24 return function (opts) {
25 return Control_Promise.toAffE($foreign["_fetch"](impl)(url$prime)(opts));
26 };
27 };
28 };
29};
30module.exports = {
31 URL: URL,
32 postMethod: postMethod,
33 fetch: fetch,
34 json: json,
35 makeHeaders: makeHeaders,
36 statusCode: statusCode
37};