git.iko.soy/rowtype-yoga/psfp
on 6c57a55 help sign in
29 lines 937 B history raw
1// Generated by purs version 0.13.6
2"use strict";
3var $foreign = require("./foreign.js");
4var Control_Category = require("../Control.Category/index.js");
5var Data_Function = require("../Data.Function/index.js");
6var Data_Functor = require("../Data.Functor/index.js");
7var Apply = function (Functor0, apply) {
8 this.Functor0 = Functor0;
9 this.apply = apply;
10};
11var applyArray = new Apply(function ($dollar__unused) {
12 return Data_Functor.functorArray;
13}, $foreign.arrayApply);
14var apply = function (dict) {
15 return dict.apply;
16};
17var applySecond = function (dictApply) {
18 return function (a) {
19 return function (b) {
20 return apply(dictApply)(Data_Functor.map(dictApply.Functor0())(Data_Function["const"](Control_Category.identity(Control_Category.categoryFn)))(a))(b);
21 };
22 };
23};
24module.exports = {
25 Apply: Apply,
26 apply: apply,
27 applySecond: applySecond,
28 applyArray: applyArray
29};