UNPKG

purs-pkg-deps

Version:

Query package dependencies in PureScript package-sets

89 lines (88 loc) 3.35 kB
// Generated by purs version 0.14.3 "use strict"; var Control_Alt = require("../Control.Alt/index.js"); var Control_Alternative = require("../Control.Alternative/index.js"); var Control_Applicative = require("../Control.Applicative/index.js"); var Control_Apply = require("../Control.Apply/index.js"); var Control_Bind = require("../Control.Bind/index.js"); var Control_Plus = require("../Control.Plus/index.js"); var Data_Function = require("../Data.Function/index.js"); var Data_List_Lazy = require("../Data.List.Lazy/index.js"); var Data_List_Lazy_Types = require("../Data.List.Lazy.Types/index.js"); var Data_Monoid = require("../Data.Monoid/index.js"); var Data_Newtype = require("../Data.Newtype/index.js"); var Data_Semigroup = require("../Data.Semigroup/index.js"); var Data_Show = require("../Data.Show/index.js"); var Partial_Unsafe = require("../Partial.Unsafe/index.js"); var ZipList = function (x) { return x; }; var traversableZipList = Data_List_Lazy_Types.traversableList; var showZipList = function (dictShow) { return new Data_Show.Show(function (v) { return "(ZipList " + (Data_Show.show(Data_List_Lazy_Types.showList(dictShow))(v) + ")"); }); }; var semigroupZipList = Data_List_Lazy_Types.semigroupList; var ordZipList = function (dictOrd) { return Data_List_Lazy_Types.ordList(dictOrd); }; var newtypeZipList = new Data_Newtype.Newtype(function () { return undefined; }); var monoidZipList = Data_List_Lazy_Types.monoidList; var functorZipList = Data_List_Lazy_Types.functorList; var foldableZipList = Data_List_Lazy_Types.foldableList; var eqZipList = function (dictEq) { return Data_List_Lazy_Types.eqList(dictEq); }; var applyZipList = new Control_Apply.Apply(function () { return functorZipList; }, function (v) { return function (v1) { return Data_List_Lazy.zipWith(Data_Function.apply)(v)(v1); }; }); var zipListIsNotBind = function (dictFail) { return new Control_Bind.Bind(function () { return applyZipList; }, Partial_Unsafe.unsafeCrashWith("bind: unreachable")); }; var applicativeZipList = new Control_Applicative.Applicative(function () { return applyZipList; }, function ($14) { return ZipList(Data_List_Lazy.repeat($14)); }); var altZipList = new Control_Alt.Alt(function () { return functorZipList; }, function (v) { return function (v1) { return ZipList(Data_Semigroup.append(Data_List_Lazy_Types.semigroupList)(v)(Data_List_Lazy.drop(Data_List_Lazy.length(v))(v1))); }; }); var plusZipList = new Control_Plus.Plus(function () { return altZipList; }, Data_Monoid.mempty(monoidZipList)); var alternativeZipList = new Control_Alternative.Alternative(function () { return applicativeZipList; }, function () { return plusZipList; }); module.exports = { ZipList: ZipList, showZipList: showZipList, newtypeZipList: newtypeZipList, eqZipList: eqZipList, ordZipList: ordZipList, semigroupZipList: semigroupZipList, monoidZipList: monoidZipList, foldableZipList: foldableZipList, traversableZipList: traversableZipList, functorZipList: functorZipList, applyZipList: applyZipList, applicativeZipList: applicativeZipList, altZipList: altZipList, plusZipList: plusZipList, alternativeZipList: alternativeZipList, zipListIsNotBind: zipListIsNotBind };