purs-pkg-deps
Version:
Query package dependencies in PureScript package-sets
761 lines (759 loc) • 31.2 kB
JavaScript
// Generated by purs version 0.14.3
;
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_Category = require("../Control.Category/index.js");
var Control_Comonad = require("../Control.Comonad/index.js");
var Control_Extend = require("../Control.Extend/index.js");
var Control_Monad = require("../Control.Monad/index.js");
var Control_MonadPlus = require("../Control.MonadPlus/index.js");
var Control_MonadZero = require("../Control.MonadZero/index.js");
var Control_Plus = require("../Control.Plus/index.js");
var Data_Eq = require("../Data.Eq/index.js");
var Data_Foldable = require("../Data.Foldable/index.js");
var Data_FoldableWithIndex = require("../Data.FoldableWithIndex/index.js");
var Data_Function = require("../Data.Function/index.js");
var Data_Functor = require("../Data.Functor/index.js");
var Data_FunctorWithIndex = require("../Data.FunctorWithIndex/index.js");
var Data_Maybe = require("../Data.Maybe/index.js");
var Data_Monoid = require("../Data.Monoid/index.js");
var Data_Newtype = require("../Data.Newtype/index.js");
var Data_NonEmpty = require("../Data.NonEmpty/index.js");
var Data_Ord = require("../Data.Ord/index.js");
var Data_Ordering = require("../Data.Ordering/index.js");
var Data_Semigroup = require("../Data.Semigroup/index.js");
var Data_Semigroup_Traversable = require("../Data.Semigroup.Traversable/index.js");
var Data_Semiring = require("../Data.Semiring/index.js");
var Data_Show = require("../Data.Show/index.js");
var Data_Traversable = require("../Data.Traversable/index.js");
var Data_TraversableWithIndex = require("../Data.TraversableWithIndex/index.js");
var Data_Tuple = require("../Data.Tuple/index.js");
var Data_Unfoldable = require("../Data.Unfoldable/index.js");
var Data_Unfoldable1 = require("../Data.Unfoldable1/index.js");
var Nil = (function () {
function Nil() {
};
Nil.value = new Nil();
return Nil;
})();
var Cons = (function () {
function Cons(value0, value1) {
this.value0 = value0;
this.value1 = value1;
};
Cons.create = function (value0) {
return function (value1) {
return new Cons(value0, value1);
};
};
return Cons;
})();
var NonEmptyList = function (x) {
return x;
};
var toList = function (v) {
return new Cons(v.value0, v.value1);
};
var newtypeNonEmptyList = new Data_Newtype.Newtype(function () {
return undefined;
});
var nelCons = function (a) {
return function (v) {
return new Data_NonEmpty.NonEmpty(a, new Cons(v.value0, v.value1));
};
};
var listMap = function (f) {
var chunkedRevMap = function ($copy_chunksAcc) {
return function ($copy_v) {
var $tco_var_chunksAcc = $copy_chunksAcc;
var $tco_done = false;
var $tco_result;
function $tco_loop(chunksAcc, v) {
if (v instanceof Cons && (v.value1 instanceof Cons && v.value1.value1 instanceof Cons)) {
$tco_var_chunksAcc = new Cons(v, chunksAcc);
$copy_v = v.value1.value1.value1;
return;
};
var unrolledMap = function (v1) {
if (v1 instanceof Cons && (v1.value1 instanceof Cons && v1.value1.value1 instanceof Nil)) {
return new Cons(f(v1.value0), new Cons(f(v1.value1.value0), Nil.value));
};
if (v1 instanceof Cons && v1.value1 instanceof Nil) {
return new Cons(f(v1.value0), Nil.value);
};
return Nil.value;
};
var reverseUnrolledMap = function ($copy_v1) {
return function ($copy_acc) {
var $tco_var_v1 = $copy_v1;
var $tco_done1 = false;
var $tco_result;
function $tco_loop(v1, acc) {
if (v1 instanceof Cons && (v1.value0 instanceof Cons && (v1.value0.value1 instanceof Cons && v1.value0.value1.value1 instanceof Cons))) {
$tco_var_v1 = v1.value1;
$copy_acc = new Cons(f(v1.value0.value0), new Cons(f(v1.value0.value1.value0), new Cons(f(v1.value0.value1.value1.value0), acc)));
return;
};
$tco_done1 = true;
return acc;
};
while (!$tco_done1) {
$tco_result = $tco_loop($tco_var_v1, $copy_acc);
};
return $tco_result;
};
};
$tco_done = true;
return reverseUnrolledMap(chunksAcc)(unrolledMap(v));
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_chunksAcc, $copy_v);
};
return $tco_result;
};
};
return chunkedRevMap(Nil.value);
};
var functorList = new Data_Functor.Functor(listMap);
var functorNonEmptyList = Data_NonEmpty.functorNonEmpty(functorList);
var foldableList = new Data_Foldable.Foldable(function (dictMonoid) {
return function (f) {
return Data_Foldable.foldl(foldableList)(function (acc) {
var $204 = Data_Semigroup.append(dictMonoid.Semigroup0())(acc);
return function ($205) {
return $204(f($205));
};
})(Data_Monoid.mempty(dictMonoid));
};
}, function (f) {
var go = function ($copy_b) {
return function ($copy_v) {
var $tco_var_b = $copy_b;
var $tco_done = false;
var $tco_result;
function $tco_loop(b, v) {
if (v instanceof Nil) {
$tco_done = true;
return b;
};
if (v instanceof Cons) {
$tco_var_b = f(b)(v.value0);
$copy_v = v.value1;
return;
};
throw new Error("Failed pattern match at Data.List.Types (line 112, column 12 - line 114, column 30): " + [ v.constructor.name ]);
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_b, $copy_v);
};
return $tco_result;
};
};
return go;
}, function (f) {
return function (b) {
var rev = (function () {
var go = function ($copy_acc) {
return function ($copy_v) {
var $tco_var_acc = $copy_acc;
var $tco_done1 = false;
var $tco_result;
function $tco_loop(acc, v) {
if (v instanceof Nil) {
$tco_done1 = true;
return acc;
};
if (v instanceof Cons) {
$tco_var_acc = new Cons(v.value0, acc);
$copy_v = v.value1;
return;
};
throw new Error("Failed pattern match at Data.List.Types (line 108, column 7 - line 108, column 23): " + [ acc.constructor.name, v.constructor.name ]);
};
while (!$tco_done1) {
$tco_result = $tco_loop($tco_var_acc, $copy_v);
};
return $tco_result;
};
};
return go(Nil.value);
})();
var $206 = Data_Foldable.foldl(foldableList)(Data_Function.flip(f))(b);
return function ($207) {
return $206(rev($207));
};
};
});
var foldableNonEmptyList = Data_NonEmpty.foldableNonEmpty(foldableList);
var foldableWithIndexList = new Data_FoldableWithIndex.FoldableWithIndex(function () {
return foldableList;
}, function (dictMonoid) {
return function (f) {
return Data_FoldableWithIndex.foldlWithIndex(foldableWithIndexList)(function (i) {
return function (acc) {
var $208 = Data_Semigroup.append(dictMonoid.Semigroup0())(acc);
var $209 = f(i);
return function ($210) {
return $208($209($210));
};
};
})(Data_Monoid.mempty(dictMonoid));
};
}, function (f) {
return function (acc) {
var $211 = Data_Foldable.foldl(foldableList)(function (v) {
return function (a) {
return new Data_Tuple.Tuple(v.value0 + 1 | 0, f(v.value0)(v.value1)(a));
};
})(new Data_Tuple.Tuple(0, acc));
return function ($212) {
return Data_Tuple.snd($211($212));
};
};
}, function (f) {
return function (b) {
return function (xs) {
var v = (function () {
var rev = Data_Foldable.foldl(foldableList)(function (v1) {
return function (a) {
return new Data_Tuple.Tuple(v1.value0 + 1 | 0, new Cons(a, v1.value1));
};
});
return rev(new Data_Tuple.Tuple(0, Nil.value))(xs);
})();
return Data_Tuple.snd(Data_Foldable.foldl(foldableList)(function (v1) {
return function (a) {
return new Data_Tuple.Tuple(v1.value0 - 1 | 0, f(v1.value0 - 1 | 0)(a)(v1.value1));
};
})(new Data_Tuple.Tuple(v.value0, b))(v.value1));
};
};
});
var foldableWithIndexNonEmptyList = new Data_FoldableWithIndex.FoldableWithIndex(function () {
return foldableNonEmptyList;
}, function (dictMonoid) {
return function (f) {
return function (v) {
return Data_FoldableWithIndex.foldMapWithIndex(Data_NonEmpty.foldableWithIndexNonEmpty(foldableWithIndexList))(dictMonoid)((function () {
var $213 = Data_Maybe.maybe(0)(Data_Semiring.add(Data_Semiring.semiringInt)(1));
return function ($214) {
return f($213($214));
};
})())(v);
};
};
}, function (f) {
return function (b) {
return function (v) {
return Data_FoldableWithIndex.foldlWithIndex(Data_NonEmpty.foldableWithIndexNonEmpty(foldableWithIndexList))((function () {
var $215 = Data_Maybe.maybe(0)(Data_Semiring.add(Data_Semiring.semiringInt)(1));
return function ($216) {
return f($215($216));
};
})())(b)(v);
};
};
}, function (f) {
return function (b) {
return function (v) {
return Data_FoldableWithIndex.foldrWithIndex(Data_NonEmpty.foldableWithIndexNonEmpty(foldableWithIndexList))((function () {
var $217 = Data_Maybe.maybe(0)(Data_Semiring.add(Data_Semiring.semiringInt)(1));
return function ($218) {
return f($217($218));
};
})())(b)(v);
};
};
});
var functorWithIndexList = new Data_FunctorWithIndex.FunctorWithIndex(function () {
return functorList;
}, function (f) {
return Data_FoldableWithIndex.foldrWithIndex(foldableWithIndexList)(function (i) {
return function (x) {
return function (acc) {
return new Cons(f(i)(x), acc);
};
};
})(Nil.value);
});
var functorWithIndexNonEmptyList = new Data_FunctorWithIndex.FunctorWithIndex(function () {
return functorNonEmptyList;
}, function (fn) {
return function (v) {
return NonEmptyList(Data_FunctorWithIndex.mapWithIndex(Data_NonEmpty.functorWithIndex(functorWithIndexList))((function () {
var $219 = Data_Maybe.maybe(0)(Data_Semiring.add(Data_Semiring.semiringInt)(1));
return function ($220) {
return fn($219($220));
};
})())(v));
};
});
var semigroupList = new Data_Semigroup.Semigroup(function (xs) {
return function (ys) {
return Data_Foldable.foldr(foldableList)(Cons.create)(ys)(xs);
};
});
var monoidList = new Data_Monoid.Monoid(function () {
return semigroupList;
}, Nil.value);
var semigroupNonEmptyList = new Data_Semigroup.Semigroup(function (v) {
return function (as$prime) {
return new Data_NonEmpty.NonEmpty(v.value0, Data_Semigroup.append(semigroupList)(v.value1)(toList(as$prime)));
};
});
var showList = function (dictShow) {
return new Data_Show.Show(function (v) {
if (v instanceof Nil) {
return "Nil";
};
return "(" + (Data_Foldable.intercalate(foldableList)(Data_Monoid.monoidString)(" : ")(Data_Functor.map(functorList)(Data_Show.show(dictShow))(v)) + " : Nil)");
});
};
var showNonEmptyList = function (dictShow) {
return new Data_Show.Show(function (v) {
return "(NonEmptyList " + (Data_Show.show(Data_NonEmpty.showNonEmpty(dictShow)(showList(dictShow)))(v) + ")");
});
};
var traversableList = new Data_Traversable.Traversable(function () {
return foldableList;
}, function () {
return functorList;
}, function (dictApplicative) {
return Data_Traversable.traverse(traversableList)(dictApplicative)(Control_Category.identity(Control_Category.categoryFn));
}, function (dictApplicative) {
return function (f) {
var $221 = Data_Functor.map((dictApplicative.Apply0()).Functor0())(Data_Foldable.foldl(foldableList)(Data_Function.flip(Cons.create))(Nil.value));
var $222 = Data_Foldable.foldl(foldableList)(function (acc) {
var $224 = Control_Apply.lift2(dictApplicative.Apply0())(Data_Function.flip(Cons.create))(acc);
return function ($225) {
return $224(f($225));
};
})(Control_Applicative.pure(dictApplicative)(Nil.value));
return function ($223) {
return $221($222($223));
};
};
});
var traversableNonEmptyList = Data_NonEmpty.traversableNonEmpty(traversableList);
var traversableWithIndexList = new Data_TraversableWithIndex.TraversableWithIndex(function () {
return foldableWithIndexList;
}, function () {
return functorWithIndexList;
}, function () {
return traversableList;
}, function (dictApplicative) {
return function (f) {
var rev = Data_Foldable.foldl(foldableList)(Data_Function.flip(Cons.create))(Nil.value);
var $226 = Data_Functor.map((dictApplicative.Apply0()).Functor0())(rev);
var $227 = Data_FoldableWithIndex.foldlWithIndex(foldableWithIndexList)(function (i) {
return function (acc) {
var $229 = Control_Apply.lift2(dictApplicative.Apply0())(Data_Function.flip(Cons.create))(acc);
var $230 = f(i);
return function ($231) {
return $229($230($231));
};
};
})(Control_Applicative.pure(dictApplicative)(Nil.value));
return function ($228) {
return $226($227($228));
};
};
});
var traversableWithIndexNonEmptyList = new Data_TraversableWithIndex.TraversableWithIndex(function () {
return foldableWithIndexNonEmptyList;
}, function () {
return functorWithIndexNonEmptyList;
}, function () {
return traversableNonEmptyList;
}, function (dictApplicative) {
return function (f) {
return function (v) {
return Data_Functor.map((dictApplicative.Apply0()).Functor0())(NonEmptyList)(Data_TraversableWithIndex.traverseWithIndex(Data_NonEmpty.traversableWithIndexNonEmpty(traversableWithIndexList))(dictApplicative)((function () {
var $232 = Data_Maybe.maybe(0)(Data_Semiring.add(Data_Semiring.semiringInt)(1));
return function ($233) {
return f($232($233));
};
})())(v));
};
};
});
var unfoldable1List = new Data_Unfoldable1.Unfoldable1(function (f) {
return function (b) {
var go = function ($copy_source) {
return function ($copy_memo) {
var $tco_var_source = $copy_source;
var $tco_done = false;
var $tco_result;
function $tco_loop(source, memo) {
var v = f(source);
if (v.value1 instanceof Data_Maybe.Just) {
$tco_var_source = v.value1.value0;
$copy_memo = new Cons(v.value0, memo);
return;
};
if (v.value1 instanceof Data_Maybe.Nothing) {
$tco_done = true;
return Data_Foldable.foldl(foldableList)(Data_Function.flip(Cons.create))(Nil.value)(new Cons(v.value0, memo));
};
throw new Error("Failed pattern match at Data.List.Types (line 136, column 22 - line 138, column 61): " + [ v.constructor.name ]);
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_source, $copy_memo);
};
return $tco_result;
};
};
return go(b)(Nil.value);
};
});
var unfoldableList = new Data_Unfoldable.Unfoldable(function () {
return unfoldable1List;
}, function (f) {
return function (b) {
var go = function ($copy_source) {
return function ($copy_memo) {
var $tco_var_source = $copy_source;
var $tco_done = false;
var $tco_result;
function $tco_loop(source, memo) {
var v = f(source);
if (v instanceof Data_Maybe.Nothing) {
$tco_done = true;
return Data_Foldable.foldl(foldableList)(Data_Function.flip(Cons.create))(Nil.value)(memo);
};
if (v instanceof Data_Maybe.Just) {
$tco_var_source = v.value0.value1;
$copy_memo = new Cons(v.value0.value0, memo);
return;
};
throw new Error("Failed pattern match at Data.List.Types (line 143, column 22 - line 145, column 52): " + [ v.constructor.name ]);
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_source, $copy_memo);
};
return $tco_result;
};
};
return go(b)(Nil.value);
};
});
var unfoldable1NonEmptyList = Data_NonEmpty.unfoldable1NonEmpty(unfoldableList);
var foldable1NonEmptyList = Data_NonEmpty.foldable1NonEmpty(foldableList);
var extendNonEmptyList = new Control_Extend.Extend(function () {
return functorNonEmptyList;
}, function (f) {
return function (v) {
var go = function (a) {
return function (v1) {
return {
val: new Cons(f(new Data_NonEmpty.NonEmpty(a, v1.acc)), v1.val),
acc: new Cons(a, v1.acc)
};
};
};
return new Data_NonEmpty.NonEmpty(f(v), (Data_Foldable.foldr(foldableList)(go)({
val: Nil.value,
acc: Nil.value
})(v.value1)).val);
};
});
var extendList = new Control_Extend.Extend(function () {
return functorList;
}, function (f) {
return function (v) {
if (v instanceof Nil) {
return Nil.value;
};
if (v instanceof Cons) {
var go = function (a$prime) {
return function (v1) {
var acc$prime = new Cons(a$prime, v1.acc);
return {
val: new Cons(f(acc$prime), v1.val),
acc: acc$prime
};
};
};
return new Cons(f(v), (Data_Foldable.foldr(foldableList)(go)({
val: Nil.value,
acc: Nil.value
})(v.value1)).val);
};
throw new Error("Failed pattern match at Data.List.Types (line 183, column 1 - line 190, column 42): " + [ f.constructor.name, v.constructor.name ]);
};
});
var eq1List = new Data_Eq.Eq1(function (dictEq) {
return function (xs) {
return function (ys) {
var go = function ($copy_v) {
return function ($copy_v1) {
return function ($copy_v2) {
var $tco_var_v = $copy_v;
var $tco_var_v1 = $copy_v1;
var $tco_done = false;
var $tco_result;
function $tco_loop(v, v1, v2) {
if (!v2) {
$tco_done = true;
return false;
};
if (v instanceof Nil && v1 instanceof Nil) {
$tco_done = true;
return v2;
};
if (v instanceof Cons && v1 instanceof Cons) {
$tco_var_v = v.value1;
$tco_var_v1 = v1.value1;
$copy_v2 = v2 && Data_Eq.eq(dictEq)(v1.value0)(v.value0);
return;
};
$tco_done = true;
return false;
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_v, $tco_var_v1, $copy_v2);
};
return $tco_result;
};
};
};
return go(xs)(ys)(true);
};
};
});
var eq1NonEmptyList = Data_NonEmpty.eq1NonEmpty(eq1List);
var eqList = function (dictEq) {
return new Data_Eq.Eq(Data_Eq.eq1(eq1List)(dictEq));
};
var eqNonEmptyList = function (dictEq) {
return Data_NonEmpty.eqNonEmpty(eq1List)(dictEq);
};
var ord1List = new Data_Ord.Ord1(function () {
return eq1List;
}, function (dictOrd) {
return function (xs) {
return function (ys) {
var go = function ($copy_v) {
return function ($copy_v1) {
var $tco_var_v = $copy_v;
var $tco_done = false;
var $tco_result;
function $tco_loop(v, v1) {
if (v instanceof Nil && v1 instanceof Nil) {
$tco_done = true;
return Data_Ordering.EQ.value;
};
if (v instanceof Nil) {
$tco_done = true;
return Data_Ordering.LT.value;
};
if (v1 instanceof Nil) {
$tco_done = true;
return Data_Ordering.GT.value;
};
if (v instanceof Cons && v1 instanceof Cons) {
var v2 = Data_Ord.compare(dictOrd)(v.value0)(v1.value0);
if (v2 instanceof Data_Ordering.EQ) {
$tco_var_v = v.value1;
$copy_v1 = v1.value1;
return;
};
$tco_done = true;
return v2;
};
throw new Error("Failed pattern match at Data.List.Types (line 61, column 5 - line 61, column 20): " + [ v.constructor.name, v1.constructor.name ]);
};
while (!$tco_done) {
$tco_result = $tco_loop($tco_var_v, $copy_v1);
};
return $tco_result;
};
};
return go(xs)(ys);
};
};
});
var ord1NonEmptyList = Data_NonEmpty.ord1NonEmpty(ord1List);
var ordList = function (dictOrd) {
return new Data_Ord.Ord(function () {
return eqList(dictOrd.Eq0());
}, Data_Ord.compare1(ord1List)(dictOrd));
};
var ordNonEmptyList = function (dictOrd) {
return Data_NonEmpty.ordNonEmpty(ord1List)(dictOrd);
};
var comonadNonEmptyList = new Control_Comonad.Comonad(function () {
return extendNonEmptyList;
}, function (v) {
return v.value0;
});
var applyList = new Control_Apply.Apply(function () {
return functorList;
}, function (v) {
return function (v1) {
if (v instanceof Nil) {
return Nil.value;
};
if (v instanceof Cons) {
return Data_Semigroup.append(semigroupList)(Data_Functor.map(functorList)(v.value0)(v1))(Control_Apply.apply(applyList)(v.value1)(v1));
};
throw new Error("Failed pattern match at Data.List.Types (line 158, column 1 - line 160, column 48): " + [ v.constructor.name, v1.constructor.name ]);
};
});
var applyNonEmptyList = new Control_Apply.Apply(function () {
return functorNonEmptyList;
}, function (v) {
return function (v1) {
return new Data_NonEmpty.NonEmpty(v.value0(v1.value0), Data_Semigroup.append(semigroupList)(Control_Apply.apply(applyList)(v.value1)(new Cons(v1.value0, Nil.value)))(Control_Apply.apply(applyList)(new Cons(v.value0, v.value1))(v1.value1)));
};
});
var bindList = new Control_Bind.Bind(function () {
return applyList;
}, function (v) {
return function (v1) {
if (v instanceof Nil) {
return Nil.value;
};
if (v instanceof Cons) {
return Data_Semigroup.append(semigroupList)(v1(v.value0))(Control_Bind.bind(bindList)(v.value1)(v1));
};
throw new Error("Failed pattern match at Data.List.Types (line 165, column 1 - line 167, column 37): " + [ v.constructor.name, v1.constructor.name ]);
};
});
var bindNonEmptyList = new Control_Bind.Bind(function () {
return applyNonEmptyList;
}, function (v) {
return function (f) {
var v1 = f(v.value0);
return new Data_NonEmpty.NonEmpty(v1.value0, Data_Semigroup.append(semigroupList)(v1.value1)(Control_Bind.bind(bindList)(v.value1)(function ($234) {
return toList(f($234));
})));
};
});
var applicativeList = new Control_Applicative.Applicative(function () {
return applyList;
}, function (a) {
return new Cons(a, Nil.value);
});
var monadList = new Control_Monad.Monad(function () {
return applicativeList;
}, function () {
return bindList;
});
var altNonEmptyList = new Control_Alt.Alt(function () {
return functorNonEmptyList;
}, Data_Semigroup.append(semigroupNonEmptyList));
var altList = new Control_Alt.Alt(function () {
return functorList;
}, Data_Semigroup.append(semigroupList));
var plusList = new Control_Plus.Plus(function () {
return altList;
}, Nil.value);
var alternativeList = new Control_Alternative.Alternative(function () {
return applicativeList;
}, function () {
return plusList;
});
var monadPlusList = new Control_MonadPlus.MonadPlus(function () {
return alternativeList;
}, function () {
return monadList;
});
var monadZeroList = new Control_MonadZero.MonadZero(function () {
return alternativeList;
}, function () {
return monadList;
}, function () {
return undefined;
});
var applicativeNonEmptyList = new Control_Applicative.Applicative(function () {
return applyNonEmptyList;
}, (function () {
var $235 = Data_NonEmpty.singleton(plusList);
return function ($236) {
return NonEmptyList($235($236));
};
})());
var monadNonEmptyList = new Control_Monad.Monad(function () {
return applicativeNonEmptyList;
}, function () {
return bindNonEmptyList;
});
var traversable1NonEmptyList = new Data_Semigroup_Traversable.Traversable1(function () {
return foldable1NonEmptyList;
}, function () {
return traversableNonEmptyList;
}, function (dictApply) {
return Data_Semigroup_Traversable.traverse1(traversable1NonEmptyList)(dictApply)(Control_Category.identity(Control_Category.categoryFn));
}, function (dictApply) {
return function (f) {
return function (v) {
return Data_Functor.mapFlipped(dictApply.Functor0())(Data_Foldable.foldl(foldableList)(function (acc) {
var $237 = Control_Apply.lift2(dictApply)(Data_Function.flip(nelCons))(acc);
return function ($238) {
return $237(f($238));
};
})(Data_Functor.map(dictApply.Functor0())(Control_Applicative.pure(applicativeNonEmptyList))(f(v.value0)))(v.value1))(function (v1) {
return Data_Foldable.foldl(foldableList)(Data_Function.flip(nelCons))(Control_Applicative.pure(applicativeNonEmptyList)(v1.value0))(v1.value1);
});
};
};
});
module.exports = {
Nil: Nil,
Cons: Cons,
NonEmptyList: NonEmptyList,
toList: toList,
nelCons: nelCons,
showList: showList,
eqList: eqList,
eq1List: eq1List,
ordList: ordList,
ord1List: ord1List,
semigroupList: semigroupList,
monoidList: monoidList,
functorList: functorList,
functorWithIndexList: functorWithIndexList,
foldableList: foldableList,
foldableWithIndexList: foldableWithIndexList,
unfoldable1List: unfoldable1List,
unfoldableList: unfoldableList,
traversableList: traversableList,
traversableWithIndexList: traversableWithIndexList,
applyList: applyList,
applicativeList: applicativeList,
bindList: bindList,
monadList: monadList,
altList: altList,
plusList: plusList,
alternativeList: alternativeList,
monadZeroList: monadZeroList,
monadPlusList: monadPlusList,
extendList: extendList,
newtypeNonEmptyList: newtypeNonEmptyList,
eqNonEmptyList: eqNonEmptyList,
ordNonEmptyList: ordNonEmptyList,
eq1NonEmptyList: eq1NonEmptyList,
ord1NonEmptyList: ord1NonEmptyList,
showNonEmptyList: showNonEmptyList,
functorNonEmptyList: functorNonEmptyList,
applyNonEmptyList: applyNonEmptyList,
applicativeNonEmptyList: applicativeNonEmptyList,
bindNonEmptyList: bindNonEmptyList,
monadNonEmptyList: monadNonEmptyList,
altNonEmptyList: altNonEmptyList,
extendNonEmptyList: extendNonEmptyList,
comonadNonEmptyList: comonadNonEmptyList,
semigroupNonEmptyList: semigroupNonEmptyList,
foldableNonEmptyList: foldableNonEmptyList,
traversableNonEmptyList: traversableNonEmptyList,
foldable1NonEmptyList: foldable1NonEmptyList,
unfoldable1NonEmptyList: unfoldable1NonEmptyList,
functorWithIndexNonEmptyList: functorWithIndexNonEmptyList,
foldableWithIndexNonEmptyList: foldableWithIndexNonEmptyList,
traversableWithIndexNonEmptyList: traversableWithIndexNonEmptyList,
traversable1NonEmptyList: traversable1NonEmptyList
};