Skip to content

Instantly share code, notes, and snippets.

@Pauan
Last active December 27, 2016 21:25
Show Gist options
  • Save Pauan/3af525619a0bdf1f670043e0d70e2770 to your computer and use it in GitHub Desktop.
Save Pauan/3af525619a0bdf1f670043e0d70e2770 to your computer and use it in GitHub Desktop.
PureScript Tree Shaking Comparison
// Generated by psc-bundle 0.10.3
var PS = {};
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var Control_Category = PS["Control.Category"];
var $$const = function (a) {
return function (v) {
return a;
};
};
exports["const"] = $$const;
})(PS["Data.Function"] = PS["Data.Function"] || {});
(function(exports) {
"use strict";
// module Data.Unit
exports.unit = {};
})(PS["Data.Unit"] = PS["Data.Unit"] || {});
(function(exports) {
"use strict";
// module Data.Show
exports.showIntImpl = function (n) {
return n.toString();
};
})(PS["Data.Show"] = PS["Data.Show"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Data.Show"];
var Show = function (show) {
this.show = show;
};
var showInt = new Show($foreign.showIntImpl);
var show = function (dict) {
return dict.show;
};
exports["Show"] = Show;
exports["show"] = show;
exports["showInt"] = showInt;
})(PS["Data.Show"] = PS["Data.Show"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Data.Unit"];
var Data_Show = PS["Data.Show"];
exports["unit"] = $foreign.unit;
})(PS["Data.Unit"] = PS["Data.Unit"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Data.Functor"];
var Data_Function = PS["Data.Function"];
var Data_Unit = PS["Data.Unit"];
var Control_Semigroupoid = PS["Control.Semigroupoid"];
var Functor = function (map) {
this.map = map;
};
var map = function (dict) {
return dict.map;
};
var $$void = function (dictFunctor) {
return map(dictFunctor)(Data_Function["const"](Data_Unit.unit));
};
exports["Functor"] = Functor;
exports["map"] = map;
exports["void"] = $$void;
})(PS["Data.Functor"] = PS["Data.Functor"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Control.Apply"];
var Data_Functor = PS["Data.Functor"];
var Data_Function = PS["Data.Function"];
var Control_Category = PS["Control.Category"];
var Apply = function (__superclass_Data$dotFunctor$dotFunctor_0, apply) {
this["__superclass_Data.Functor.Functor_0"] = __superclass_Data$dotFunctor$dotFunctor_0;
this.apply = apply;
};
var apply = function (dict) {
return dict.apply;
};
var lift3 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return function (c) {
return apply(dictApply)(apply(dictApply)(Data_Functor.map(dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b))(c);
};
};
};
};
};
exports["Apply"] = Apply;
exports["apply"] = apply;
exports["lift3"] = lift3;
})(PS["Control.Apply"] = PS["Control.Apply"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var Control_Apply = PS["Control.Apply"];
var Data_Functor = PS["Data.Functor"];
var Data_Unit = PS["Data.Unit"];
var Applicative = function (__superclass_Control$dotApply$dotApply_0, pure) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.pure = pure;
};
var pure = function (dict) {
return dict.pure;
};
var liftA1 = function (dictApplicative) {
return function (f) {
return function (a) {
return Control_Apply.apply(dictApplicative["__superclass_Control.Apply.Apply_0"]())(pure(dictApplicative)(f))(a);
};
};
};
exports["Applicative"] = Applicative;
exports["liftA1"] = liftA1;
exports["pure"] = pure;
})(PS["Control.Applicative"] = PS["Control.Applicative"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Control.Bind"];
var Control_Applicative = PS["Control.Applicative"];
var Control_Apply = PS["Control.Apply"];
var Control_Category = PS["Control.Category"];
var Data_Function = PS["Data.Function"];
var Data_Functor = PS["Data.Functor"];
var Bind = function (__superclass_Control$dotApply$dotApply_0, bind) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.bind = bind;
};
var bind = function (dict) {
return dict.bind;
};
exports["Bind"] = Bind;
exports["bind"] = bind;
})(PS["Control.Bind"] = PS["Control.Bind"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var Control_Applicative = PS["Control.Applicative"];
var Control_Apply = PS["Control.Apply"];
var Control_Bind = PS["Control.Bind"];
var Data_Functor = PS["Data.Functor"];
var Monad = function (__superclass_Control$dotApplicative$dotApplicative_0, __superclass_Control$dotBind$dotBind_1) {
this["__superclass_Control.Applicative.Applicative_0"] = __superclass_Control$dotApplicative$dotApplicative_0;
this["__superclass_Control.Bind.Bind_1"] = __superclass_Control$dotBind$dotBind_1;
};
var ap = function (dictMonad) {
return function (f) {
return function (a) {
return Control_Bind.bind(dictMonad["__superclass_Control.Bind.Bind_1"]())(f)(function (v) {
return Control_Bind.bind(dictMonad["__superclass_Control.Bind.Bind_1"]())(a)(function (v1) {
return Control_Applicative.pure(dictMonad["__superclass_Control.Applicative.Applicative_0"]())(v(v1));
});
});
};
};
};
exports["Monad"] = Monad;
exports["ap"] = ap;
})(PS["Control.Monad"] = PS["Control.Monad"] || {});
(function(exports) {
"use strict";
// module Control.Monad.Eff
exports.pureE = function (a) {
return function () {
return a;
};
};
exports.bindE = function (a) {
return function (f) {
return function () {
return f(a())();
};
};
};
})(PS["Control.Monad.Eff"] = PS["Control.Monad.Eff"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Control.Monad.Eff"];
var Control_Applicative = PS["Control.Applicative"];
var Control_Apply = PS["Control.Apply"];
var Control_Bind = PS["Control.Bind"];
var Control_Monad = PS["Control.Monad"];
var Data_Functor = PS["Data.Functor"];
var Data_Unit = PS["Data.Unit"];
var monadEff = new Control_Monad.Monad(function () {
return applicativeEff;
}, function () {
return bindEff;
});
var bindEff = new Control_Bind.Bind(function () {
return applyEff;
}, $foreign.bindE);
var applyEff = new Control_Apply.Apply(function () {
return functorEff;
}, Control_Monad.ap(monadEff));
var applicativeEff = new Control_Applicative.Applicative(function () {
return applyEff;
}, $foreign.pureE);
var functorEff = new Data_Functor.Functor(Control_Applicative.liftA1(applicativeEff));
exports["functorEff"] = functorEff;
exports["applyEff"] = applyEff;
exports["applicativeEff"] = applicativeEff;
exports["bindEff"] = bindEff;
exports["monadEff"] = monadEff;
})(PS["Control.Monad.Eff"] = PS["Control.Monad.Eff"] || {});
(function(exports) {
"use strict";
// module Control.Monad.Eff.Console
exports.log = function (s) {
return function () {
console.log(s);
return {};
};
};
})(PS["Control.Monad.Eff.Console"] = PS["Control.Monad.Eff.Console"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Control.Monad.Eff.Console"];
var Control_Monad_Eff = PS["Control.Monad.Eff"];
var Data_Show = PS["Data.Show"];
var Data_Unit = PS["Data.Unit"];
exports["log"] = $foreign.log;
})(PS["Control.Monad.Eff.Console"] = PS["Control.Monad.Eff.Console"] || {});
(function(exports) {
"use strict";
var $events =require("../Events/foreign.js");
var $view =require("../View/foreign.js");
function Mutable(value) {
this.value = value;
this.listeners = $events.makeEvents();
}
exports.makeMutable = function (value) {
return function () {
return new Mutable(value);
};
};
exports.setImpl = function (mutable, value) {
return function () {
if (mutable.value !== value) {
mutable.value = value;
return $events.send(mutable.listeners, value);
}
};
};
exports.viewImpl = function (mutable) {
return $view.makeView(function (push) {
var stop = $events.receive(mutable.listeners, push);
push(mutable.value);
return stop;
});
};
})(PS["Mutable"] = PS["Mutable"] || {});
(function(exports) {
"use strict";
var $events =require("../Events/foreign.js");
var empty = {};
function noop() {}
function View(f) {
this.fn = f;
this.listeners = $events.makeEvents();
this.value = empty;
this.stop = null;
}
function Pure(value) {
this.value = value;
}
function observe(view, push) {
// TODO make this faster ?
if (view instanceof Pure) {
push(view.value);
return noop;
} else {
var hasListeners = $events.hasListeners(view.listeners);
var stop = $events.receive(view.listeners, push);
// TODO verify that this is only called once ?
if (!hasListeners) {
// TODO what if it pushes after it's killed ?
view.stop = view.fn(function (value) {
if (view.value !== value) {
view.value = value;
return $events.send(view.listeners, value);
}
});
} else if (view.value !== empty) {
push(view.value);
}
var stopped = false;
return function () {
if (!stopped) {
stopped = true;
stop();
if (!$events.hasListeners(view.listeners)) {
var f = view.stop;
view.value = empty;
view.stop = null;
return f();
}
}
};
}
}
exports.mapImpl = function (f, view) {
return new View(function (push) {
return observe(view, function (value) {
return push(f(value));
});
});
};
// TODO test this
// TODO verify that this follows the Apply laws
exports.applyImpl = function (viewF, view) {
return new View(function (push) {
var valueF = empty;
var value = empty;
var stopF = observe(viewF, function (f) {
valueF = f;
if (value !== empty) {
return push(valueF(value));
}
});
var stop = observe(view, function (v) {
value = v;
if (valueF !== empty) {
return push(valueF(value));
}
});
return function () {
stopF();
return stop();
};
});
};
exports.observeImpl = function (view, push) {
return function () {
return observe(view, function (value) {
return push(value)();
});
};
};
})(PS["View"] = PS["View"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["View"];
var Prelude = PS["Prelude"];
var Data_Function_Uncurried = PS["Data.Function.Uncurried"];
var Control_Monad_Eff = PS["Control.Monad.Eff"];
var Resource = PS["Resource"];
var Data_Functor = PS["Data.Functor"];
var Control_Apply = PS["Control.Apply"];
var Control_Bind = PS["Control.Bind"];
var Control_Applicative = PS["Control.Applicative"];
var ToView = function (view) {
this.view = view;
};
var view = function (dict) {
return dict.view;
};
var observe = function (view1) {
return function (f) {
return $foreign.observeImpl(view1, f);
};
};
var functorView = new Data_Functor.Functor(function (f) {
return function (a) {
return $foreign.mapImpl(f, a);
};
});
var applyView = new Control_Apply.Apply(function () {
return functorView;
}, function (f) {
return function (a) {
return $foreign.applyImpl(f, a);
};
});
exports["ToView"] = ToView;
exports["observe"] = observe;
exports["view"] = view;
exports["functorView"] = functorView;
exports["applyView"] = applyView;
})(PS["View"] = PS["View"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var $foreign = PS["Mutable"];
var Prelude = PS["Prelude"];
var Data_Function_Uncurried = PS["Data.Function.Uncurried"];
var Control_Monad_Eff = PS["Control.Monad.Eff"];
var View = PS["View"];
var Data_Unit = PS["Data.Unit"];
var toViewMutable = new View.ToView($foreign.viewImpl);
var set = function (m) {
return function (a) {
return $foreign.setImpl(m, a, Data_Unit.unit);
};
};
exports["set"] = set;
exports["toViewMutable"] = toViewMutable;
exports["makeMutable"] = $foreign.makeMutable;
})(PS["Mutable"] = PS["Mutable"] || {});
(function(exports) {
// Generated by psc version 0.10.3
"use strict";
var Prelude = PS["Prelude"];
var Control_Apply = PS["Control.Apply"];
var Control_Monad_Eff = PS["Control.Monad.Eff"];
var Control_Monad_Eff_Console = PS["Control.Monad.Eff.Console"];
var Mutable = PS["Mutable"];
var View = PS["View"];
var Control_Bind = PS["Control.Bind"];
var Data_Function = PS["Data.Function"];
var Data_Functor = PS["Data.Functor"];
var Data_Semiring = PS["Data.Semiring"];
var Data_Show = PS["Data.Show"];
var main = function __do() {
var v = Mutable.makeMutable(1)();
var v1 = Mutable.makeMutable(2)();
var v2 = Mutable.makeMutable(3)();
Data_Functor["void"](Control_Monad_Eff.functorEff)(View.observe(Control_Apply.lift3(View.applyView)(function (a) {
return function (b) {
return function (c) {
return (a + b | 0) + c | 0;
};
};
})(View.view(Mutable.toViewMutable)(v))(View.view(Mutable.toViewMutable)(v1))(View.view(Mutable.toViewMutable)(v2)))(function (a) {
return Control_Monad_Eff_Console.log(Data_Show.show(Data_Show.showInt)(a));
}))();
Mutable.set(v)(20)();
Mutable.set(v1)(30)();
return Mutable.set(v2)(40)();
};
exports["main"] = main;
})(PS["Main"] = PS["Main"] || {});
PS["Main"].main();
(function () {
'use strict';
var $$const = function (a) {
return function (v) {
return a;
};
};
var unit = {};
var showIntImpl = function (n) {
return n.toString();
};
var Show = function (show) {
this.show = show;
};
var showInt = new Show(showIntImpl);
var show = function (dict) {
return dict.show;
};
var Functor = function (map) {
this.map = map;
};
var map = function (dict) {
return dict.map;
};
var $$void = function (dictFunctor) {
return map(dictFunctor)($$const(unit));
};
var Apply = function (__superclass_Data$dotFunctor$dotFunctor_0, apply$$1) {
this["__superclass_Data.Functor.Functor_0"] = __superclass_Data$dotFunctor$dotFunctor_0;
this.apply = apply$$1;
};
var apply$$1 = function (dict) {
return dict.apply;
};
var lift3 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return function (c) {
return apply$$1(dictApply)(apply$$1(dictApply)(map(dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b))(c);
};
};
};
};
};
var Applicative = function (__superclass_Control$dotApply$dotApply_0, pure) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.pure = pure;
};
var pure = function (dict) {
return dict.pure;
};
var liftA1 = function (dictApplicative) {
return function (f) {
return function (a) {
return apply$$1(dictApplicative["__superclass_Control.Apply.Apply_0"]())(pure(dictApplicative)(f))(a);
};
};
};
var Bind = function (__superclass_Control$dotApply$dotApply_0, bind) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.bind = bind;
};
var bind = function (dict) {
return dict.bind;
};
var Monad = function (__superclass_Control$dotApplicative$dotApplicative_0, __superclass_Control$dotBind$dotBind_1) {
this["__superclass_Control.Applicative.Applicative_0"] = __superclass_Control$dotApplicative$dotApplicative_0;
this["__superclass_Control.Bind.Bind_1"] = __superclass_Control$dotBind$dotBind_1;
};
var ap = function (dictMonad) {
return function (f) {
return function (a) {
return bind(dictMonad["__superclass_Control.Bind.Bind_1"]())(f)(function (v) {
return bind(dictMonad["__superclass_Control.Bind.Bind_1"]())(a)(function (v1) {
return pure(dictMonad["__superclass_Control.Applicative.Applicative_0"]())(v(v1));
});
});
};
};
};
var unsafeCompareImpl = function (lt) {
return function (eq) {
return function (gt) {
return function (x) {
return function (y) {
return x < y ? lt : x > y ? gt : eq;
};
};
};
};
};
var LT = (function () {
function LT() {
}
LT.value = new LT();
return LT;
})();
var GT = (function () {
function GT() {
}
GT.value = new GT();
return GT;
})();
var EQ = (function () {
function EQ() {
}
EQ.value = new EQ();
return EQ;
})();
var unsafeCompare = unsafeCompareImpl(LT.value)(EQ.value)(GT.value);
var pureE = function (a) {
return function () {
return a;
};
};
var bindE = function (a) {
return function (f) {
return function () {
return f(a())();
};
};
};
var monadEff = new Monad(function () {
return applicativeEff;
}, function () {
return bindEff;
});
var bindEff = new Bind(function () {
return applyEff;
}, bindE);
var applyEff = new Apply(function () {
return functorEff;
}, ap(monadEff));
var applicativeEff = new Applicative(function () {
return applyEff;
}, pureE);
var functorEff = new Functor(liftA1(applicativeEff));
var log = function (s) {
return function () {
console.log(s);
return {};
};
};
function Events() {
this.index = 0;
this.length = 0;
this.listeners = [];
}
var makeEvents = function () {
return new Events();
};
var hasListeners = function (events) {
return events.listeners.length !== 0;
};
function send(events, value) {
var listeners = events.listeners;
// This causes it to not trigger listeners which are added while sending a value
events.length = listeners.length;
// TODO remove this later
if (events.index !== 0) {
throw new Error("Invalid state");
}
// All of this extra code is needed when a listener is removed while sending a value
for (;;) {
var index = events.index;
if (index < events.length) {
listeners[index](value);
++events.index;
} else {
break;
}
}
events.index = 0;
events.length = 0;
}
function receive(events, listener) {
events.listeners.push(listener);
var killed = false;
return function () {
if (!killed) {
killed = true;
var index = events.listeners.indexOf(listener);
if (index !== -1) {
events.listeners.splice(index, 1);
// This is needed when a listener is removed while sending a value
if (index < events.length) {
--events.length;
if (index <= events.index) {
--events.index;
}
}
}
}
};
}
var empty = {};
function noop() {}
function View(f) {
this.fn = f;
this.listeners = makeEvents();
this.value = empty;
this.stop = null;
}
var makeView = function (f) {
return new View(f);
};
function Pure(value) {
this.value = value;
}
function observe(view, push) {
// TODO make this faster ?
if (view instanceof Pure) {
push(view.value);
return noop;
} else {
var hasListeners$$1 = hasListeners(view.listeners);
var stop = receive(view.listeners, push);
// TODO verify that this is only called once ?
if (!hasListeners$$1) {
// TODO what if it pushes after it's killed ?
view.stop = view.fn(function (value) {
if (view.value !== value) {
view.value = value;
return send(view.listeners, value);
}
});
} else if (view.value !== empty) {
push(view.value);
}
var stopped = false;
return function () {
if (!stopped) {
stopped = true;
stop();
if (!hasListeners(view.listeners)) {
var f = view.stop;
view.value = empty;
view.stop = null;
return f();
}
}
};
}
}
var mapImpl = function (f, view) {
return new View(function (push) {
return observe(view, function (value) {
return push(f(value));
});
});
};
var applyImpl = function (viewF, view) {
return new View(function (push) {
var valueF = empty;
var value = empty;
var stopF = observe(viewF, function (f) {
valueF = f;
if (value !== empty) {
return push(valueF(value));
}
});
var stop = observe(view, function (v) {
value = v;
if (valueF !== empty) {
return push(valueF(value));
}
});
return function () {
stopF();
return stop();
};
});
};
var observeImpl = function (view, push) {
return function () {
return observe(view, function (value) {
return push(value)();
});
};
};
function Mutable(value) {
this.value = value;
this.listeners = makeEvents();
}
var makeMutable = function (value) {
return function () {
return new Mutable(value);
};
};
var setImpl = function (mutable, value) {
return function () {
if (mutable.value !== value) {
mutable.value = value;
return send(mutable.listeners, value);
}
};
};
var viewImpl = function (mutable) {
return makeView(function (push) {
var stop = receive(mutable.listeners, push);
push(mutable.value);
return stop;
});
};
var ToView = function (view) {
this.view = view;
};
var view = function (dict) {
return dict.view;
};
var observe$1 = function (view1) {
return function (f) {
return observeImpl(view1, f);
};
};
var functorView = new Functor(function (f) {
return function (a) {
return mapImpl(f, a);
};
});
var applyView = new Apply(function () {
return functorView;
}, function (f) {
return function (a) {
return applyImpl(f, a);
};
});
var toViewMutable = new ToView(viewImpl);
var set = function (m) {
return function (a) {
return setImpl(m, a, unit);
};
};
var main = function __do() {
var v = makeMutable(1)();
var v1 = makeMutable(2)();
var v2 = makeMutable(3)();
$$void(functorEff)(observe$1(lift3(applyView)(function (a) {
return function (b) {
return function (c) {
return (a + b | 0) + c | 0;
};
};
})(view(toViewMutable)(v))(view(toViewMutable)(v1))(view(toViewMutable)(v2)))(function (a) {
return log(show(showInt)(a));
}))();
set(v)(20)();
set(v1)(30)();
return set(v2)(40)();
};
main();
}());
//# sourceMappingURL=rollup.js.map
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 54);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(50);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Show__ = __webpack_require__(5);
/* unused harmony export showUnit */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return unit; });
// Generated by psc version 0.10.3
var showUnit = new __WEBPACK_IMPORTED_MODULE_1__Data_Show__["c" /* Show */](function (v) {
return "unit";
});
//# sourceMappingURL=index.js.map
var unit = __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* unit */];
/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Semigroupoid__ = __webpack_require__(14);
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return Functor; });
/* unused harmony export flap */
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return map; });
/* unused harmony export mapFlipped */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return $$void; });
/* unused harmony export voidLeft */
/* unused harmony export voidRight */
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return functorFn; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return functorArray; });
// Generated by psc version 0.10.3
var Functor = function (map) {
this.map = map;
};
var map = function (dict) {
return dict.map;
};
var mapFlipped = function (dictFunctor) {
return function (fa) {
return function (f) {
return map(dictFunctor)(f)(fa);
};
};
};
var $$void = function (dictFunctor) {
return map(dictFunctor)(__WEBPACK_IMPORTED_MODULE_1__Data_Function__["a" /* const */](__WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */]));
};
var voidLeft = function (dictFunctor) {
return function (f) {
return function (x) {
return map(dictFunctor)(__WEBPACK_IMPORTED_MODULE_1__Data_Function__["a" /* const */](x))(f);
};
};
};
var voidRight = function (dictFunctor) {
return function (x) {
return map(dictFunctor)(__WEBPACK_IMPORTED_MODULE_1__Data_Function__["a" /* const */](x));
};
};
var functorFn = new Functor(__WEBPACK_IMPORTED_MODULE_3__Control_Semigroupoid__["b" /* compose */](__WEBPACK_IMPORTED_MODULE_3__Control_Semigroupoid__["a" /* semigroupoidFn */]));
var functorArray = new Functor(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* arrayMap */]);
var flap = function (dictFunctor) {
return function (ff) {
return function (x) {
return map(dictFunctor)(function (f) {
return f(x);
})(ff);
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(27);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Category__ = __webpack_require__(10);
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return Apply; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return apply; });
/* unused harmony export applyFirst */
/* unused harmony export applySecond */
/* unused harmony export lift2 */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return lift3; });
/* unused harmony export lift4 */
/* unused harmony export lift5 */
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return applyFn; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return applyArray; });
// Generated by psc version 0.10.3
var Apply = function (__superclass_Data$dotFunctor$dotFunctor_0, apply) {
this["__superclass_Data.Functor.Functor_0"] = __superclass_Data$dotFunctor$dotFunctor_0;
this.apply = apply;
};
var applyFn = new Apply(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Functor__["c" /* functorFn */];
}, function (f) {
return function (g) {
return function (x) {
return f(x)(g(x));
};
};
});
var applyArray = new Apply(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Functor__["d" /* functorArray */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* arrayApply */]);
var apply = function (dict) {
return dict.apply;
};
var applyFirst = function (dictApply) {
return function (a) {
return function (b) {
return apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(__WEBPACK_IMPORTED_MODULE_2__Data_Function__["a" /* const */])(a))(b);
};
};
};
var applySecond = function (dictApply) {
return function (a) {
return function (b) {
return apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(__WEBPACK_IMPORTED_MODULE_2__Data_Function__["a" /* const */](__WEBPACK_IMPORTED_MODULE_3__Control_Category__["a" /* id */](__WEBPACK_IMPORTED_MODULE_3__Control_Category__["b" /* categoryFn */])))(a))(b);
};
};
};
var lift2 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b);
};
};
};
};
var lift3 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return function (c) {
return apply(dictApply)(apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b))(c);
};
};
};
};
};
var lift4 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return apply(dictApply)(apply(dictApply)(apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b))(c))(d);
};
};
};
};
};
};
var lift5 = function (dictApply) {
return function (f) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return apply(dictApply)(apply(dictApply)(apply(dictApply)(apply(dictApply)(__WEBPACK_IMPORTED_MODULE_1__Data_Functor__["e" /* map */](dictApply["__superclass_Data.Functor.Functor_0"]())(f)(a))(b))(c))(d))(e);
};
};
};
};
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* unused harmony export Semiring */
/* unused harmony export add */
/* unused harmony export mul */
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return one; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return zero; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return semiringInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return semiringNumber; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return semiringUnit; });
// Generated by psc version 0.10.3
var Semiring = function (add, mul, one, zero) {
this.add = add;
this.mul = mul;
this.one = one;
this.zero = zero;
};
var zero = function (dict) {
return dict.zero;
};
var semiringUnit = new Semiring(function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
}, __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */], __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */]);
var semiringNumber = new Semiring(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* numAdd */], __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* numMul */], 1.0, 0.0);
var semiringInt = new Semiring(__WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* intAdd */], __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* intMul */], 1, 0);
var one = function (dict) {
return dict.one;
};
var mul = function (dict) {
return dict.mul;
};
var add = function (dict) {
return dict.add;
};
//# sourceMappingURL=index.js.map
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Control_Category__ = __webpack_require__(10);
/* unused harmony export apply */
/* unused harmony export applyFlipped */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return $$const; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return flip; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return on; });
// Generated by psc version 0.10.3
var on = function (f) {
return function (g) {
return function (x) {
return function (y) {
return f(g(x))(g(y));
};
};
};
};
var flip = function (f) {
return function (b) {
return function (a) {
return f(a)(b);
};
};
};
var $$const = function (a) {
return function (v) {
return a;
};
};
var applyFlipped = function (x) {
return function (f) {
return f(x);
};
};
var apply = function (f) {
return function (x) {
return f(x);
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(49);
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return Show; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return show; });
/* unused harmony export showBoolean */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return showInt; });
/* unused harmony export showNumber */
/* unused harmony export showChar */
/* unused harmony export showString */
/* unused harmony export showArray */
// Generated by psc version 0.10.3
var Show = function (show) {
this.show = show;
};
var showString = new Show(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* showStringImpl */]);
var showNumber = new Show(__WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* showNumberImpl */]);
var showInt = new Show(__WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* showIntImpl */]);
var showChar = new Show(__WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* showCharImpl */]);
var showBoolean = new Show(function (v) {
if (v) {
return "true";
};
if (!v) {
return "false";
};
throw new Error("Failed pattern match at Data.Show line 13, column 3 - line 14, column 3: " + [ v.constructor.name ]);
});
var show = function (dict) {
return dict.show;
};
var showArray = function (dictShow) {
return new Show(__WEBPACK_IMPORTED_MODULE_0__foreign__["e" /* showArrayImpl */](show(dictShow)));
};
//# sourceMappingURL=index.js.map
/***/ },
/* 6 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Unit__ = __webpack_require__(0);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return Applicative; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return liftA1; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return pure; });
/* unused harmony export unless */
/* unused harmony export when */
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return applicativeFn; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return applicativeArray; });
// Generated by psc version 0.10.3
var Applicative = function (__superclass_Control$dotApply$dotApply_0, pure) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.pure = pure;
};
var pure = function (dict) {
return dict.pure;
};
var unless = function (dictApplicative) {
return function (v) {
return function (v1) {
if (!v) {
return v1;
};
if (v) {
return pure(dictApplicative)(__WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */]);
};
throw new Error("Failed pattern match at Control.Applicative line 63, column 1 - line 63, column 19: " + [ v.constructor.name, v1.constructor.name ]);
};
};
};
var when = function (dictApplicative) {
return function (v) {
return function (v1) {
if (v) {
return v1;
};
if (!v) {
return pure(dictApplicative)(__WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */]);
};
throw new Error("Failed pattern match at Control.Applicative line 58, column 1 - line 58, column 16: " + [ v.constructor.name, v1.constructor.name ]);
};
};
};
var liftA1 = function (dictApplicative) {
return function (f) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__Control_Apply__["c" /* apply */](dictApplicative["__superclass_Control.Apply.Apply_0"]())(pure(dictApplicative)(f))(a);
};
};
};
var applicativeFn = new Applicative(function () {
return __WEBPACK_IMPORTED_MODULE_0__Control_Apply__["d" /* applyFn */];
}, function (x) {
return function (v) {
return x;
};
});
var applicativeArray = new Applicative(function () {
return __WEBPACK_IMPORTED_MODULE_0__Control_Apply__["e" /* applyArray */];
}, function (x) {
return [ x ];
});
//# sourceMappingURL=index.js.map
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Applicative__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Category__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Data_Functor__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return Bind; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return bind; });
/* unused harmony export bindFlipped */
/* unused harmony export composeKleisli */
/* unused harmony export composeKleisliFlipped */
/* unused harmony export ifM */
/* unused harmony export join */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return bindFn; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return bindArray; });
// Generated by psc version 0.10.3
var Bind = function (__superclass_Control$dotApply$dotApply_0, bind) {
this["__superclass_Control.Apply.Apply_0"] = __superclass_Control$dotApply$dotApply_0;
this.bind = bind;
};
var bindFn = new Bind(function () {
return __WEBPACK_IMPORTED_MODULE_2__Control_Apply__["d" /* applyFn */];
}, function (m) {
return function (f) {
return function (x) {
return f(m(x))(x);
};
};
});
var bindArray = new Bind(function () {
return __WEBPACK_IMPORTED_MODULE_2__Control_Apply__["e" /* applyArray */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* arrayBind */]);
var bind = function (dict) {
return dict.bind;
};
var bindFlipped = function (dictBind) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Function__["b" /* flip */](bind(dictBind));
};
var composeKleisliFlipped = function (dictBind) {
return function (f) {
return function (g) {
return function (a) {
return bindFlipped(dictBind)(f)(g(a));
};
};
};
};
var composeKleisli = function (dictBind) {
return function (f) {
return function (g) {
return function (a) {
return bind(dictBind)(f(a))(g);
};
};
};
};
var ifM = function (dictBind) {
return function (cond) {
return function (t) {
return function (f) {
return bind(dictBind)(cond)(function (cond$prime) {
if (cond$prime) {
return t;
};
if (!cond$prime) {
return f;
};
throw new Error("Failed pattern match at Control.Bind line 103, column 35 - line 103, column 56: " + [ cond$prime.constructor.name ]);
});
};
};
};
};
var join = function (dictBind) {
return function (m) {
return bind(dictBind)(m)(__WEBPACK_IMPORTED_MODULE_3__Control_Category__["a" /* id */](__WEBPACK_IMPORTED_MODULE_3__Control_Category__["b" /* categoryFn */]));
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Applicative__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Bind__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Control_Monad__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Data_Unit__ = __webpack_require__(0);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return functorEff; });
/* unused harmony export applyEff */
/* unused harmony export applicativeEff */
/* unused harmony export bindEff */
/* unused harmony export monadEff */
/* unused harmony export forE */
/* unused harmony export foreachE */
/* unused harmony export runPure */
/* unused harmony export untilE */
/* unused harmony export whileE */
// Generated by psc version 0.10.3
var monadEff = new __WEBPACK_IMPORTED_MODULE_4__Control_Monad__["a" /* Monad */](function () {
return applicativeEff;
}, function () {
return bindEff;
});
var bindEff = new __WEBPACK_IMPORTED_MODULE_3__Control_Bind__["a" /* Bind */](function () {
return applyEff;
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* bindE */]);
var applyEff = new __WEBPACK_IMPORTED_MODULE_2__Control_Apply__["b" /* Apply */](function () {
return functorEff;
}, __WEBPACK_IMPORTED_MODULE_4__Control_Monad__["b" /* ap */](monadEff));
var applicativeEff = new __WEBPACK_IMPORTED_MODULE_1__Control_Applicative__["a" /* Applicative */](function () {
return applyEff;
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* pureE */]);
var functorEff = new __WEBPACK_IMPORTED_MODULE_5__Data_Functor__["b" /* Functor */](__WEBPACK_IMPORTED_MODULE_1__Control_Applicative__["b" /* liftA1 */](applicativeEff));
//# sourceMappingURL=index.js.map
var forE = __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* forE */];var foreachE = __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* foreachE */];var runPure = __WEBPACK_IMPORTED_MODULE_0__foreign__["e" /* runPure */];var untilE = __WEBPACK_IMPORTED_MODULE_0__foreign__["f" /* untilE */];var whileE = __WEBPACK_IMPORTED_MODULE_0__foreign__["g" /* whileE */];
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(46);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Unit__ = __webpack_require__(0);
/* unused harmony export Ring */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return negate; });
/* unused harmony export sub */
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return ringInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return ringNumber; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return ringUnit; });
// Generated by psc version 0.10.3
var Ring = function (__superclass_Data$dotSemiring$dotSemiring_0, sub) {
this["__superclass_Data.Semiring.Semiring_0"] = __superclass_Data$dotSemiring$dotSemiring_0;
this.sub = sub;
};
var sub = function (dict) {
return dict.sub;
};
var ringUnit = new Ring(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Semiring__["a" /* semiringUnit */];
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */];
};
});
var ringNumber = new Ring(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Semiring__["b" /* semiringNumber */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* numSub */]);
var ringInt = new Ring(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Semiring__["c" /* semiringInt */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* intSub */]);
var negate = function (dictRing) {
return function (a) {
return sub(dictRing)(__WEBPACK_IMPORTED_MODULE_1__Data_Semiring__["d" /* zero */](dictRing["__superclass_Data.Semiring.Semiring_0"]()))(a);
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Control_Semigroupoid__ = __webpack_require__(14);
/* unused harmony export Category */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return id; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return categoryFn; });
// Generated by psc version 0.10.3
var Category = function (__superclass_Control$dotSemigroupoid$dotSemigroupoid_0, id) {
this["__superclass_Control.Semigroupoid.Semigroupoid_0"] = __superclass_Control$dotSemigroupoid$dotSemigroupoid_0;
this.id = id;
};
var id = function (dict) {
return dict.id;
};
var categoryFn = new Category(function () {
return __WEBPACK_IMPORTED_MODULE_0__Control_Semigroupoid__["a" /* semigroupoidFn */];
}, function (x) {
return x;
});
//# sourceMappingURL=index.js.map
/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Data_Eq__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Semigroup__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Show__ = __webpack_require__(5);
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return LT; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return GT; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return EQ; });
/* unused harmony export invert */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return eqOrdering; });
/* unused harmony export semigroupOrdering */
/* unused harmony export showOrdering */
// Generated by psc version 0.10.3
var LT = (function () {
function LT() {
};
LT.value = new LT();
return LT;
})();
var GT = (function () {
function GT() {
};
GT.value = new GT();
return GT;
})();
var EQ = (function () {
function EQ() {
};
EQ.value = new EQ();
return EQ;
})();
var showOrdering = new __WEBPACK_IMPORTED_MODULE_2__Data_Show__["c" /* Show */](function (v) {
if (v instanceof LT) {
return "LT";
};
if (v instanceof GT) {
return "GT";
};
if (v instanceof EQ) {
return "EQ";
};
throw new Error("Failed pattern match at Data.Ordering line 27, column 3 - line 28, column 3: " + [ v.constructor.name ]);
});
var semigroupOrdering = new __WEBPACK_IMPORTED_MODULE_1__Data_Semigroup__["a" /* Semigroup */](function (v) {
return function (v1) {
if (v instanceof LT) {
return LT.value;
};
if (v instanceof GT) {
return GT.value;
};
if (v instanceof EQ) {
return v1;
};
throw new Error("Failed pattern match at Data.Ordering line 22, column 3 - line 22, column 19: " + [ v.constructor.name, v1.constructor.name ]);
};
});
var invert = function (v) {
if (v instanceof GT) {
return LT.value;
};
if (v instanceof EQ) {
return EQ.value;
};
if (v instanceof LT) {
return GT.value;
};
throw new Error("Failed pattern match at Data.Ordering line 34, column 1 - line 34, column 15: " + [ v.constructor.name ]);
};
var eqOrdering = new __WEBPACK_IMPORTED_MODULE_0__Data_Eq__["a" /* Eq */](function (v) {
return function (v1) {
if (v instanceof LT && v1 instanceof LT) {
return true;
};
if (v instanceof GT && v1 instanceof GT) {
return true;
};
if (v instanceof EQ && v1 instanceof EQ) {
return true;
};
return false;
};
});
//# sourceMappingURL=index.js.map
/***/ },
/* 12 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Data_Show__ = __webpack_require__(5);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return absurd; });
/* unused harmony export showVoid */
// Generated by psc version 0.10.3
var Void = function (x) {
return x;
};
var absurd = function (a) {
var spin = function (__copy_v) {
var v = __copy_v;
tco: while (true) {
var __tco_v = v;
v = __tco_v;
continue tco;
};
};
return spin(a);
};
var showVoid = new __WEBPACK_IMPORTED_MODULE_0__Data_Show__["c" /* Show */](absurd);
//# sourceMappingURL=index.js.map
/***/ },
/* 13 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Control_Bind__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Category__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Control_Monad__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Control_Semigroupoid__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Data_Boolean__ = __webpack_require__(32);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Data_BooleanAlgebra__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Data_Bounded__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Data_CommutativeRing__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Data_Eq__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Data_EuclideanRing__ = __webpack_require__(18);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Data_Field__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__Data_HeytingAlgebra__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__Data_NaturalTransformation__ = __webpack_require__(42);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__Data_NaturalTransformation___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16__Data_NaturalTransformation__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Data_Ord__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__Data_Ordering__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__Data_Ring__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__Data_Semigroup__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__Data_Show__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__Data_Void__ = __webpack_require__(12);
// Generated by psc version 0.10.3
//# sourceMappingURL=index.js.map
/***/ },
/* 14 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* unused harmony export Semigroupoid */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return compose; });
/* unused harmony export composeFlipped */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return semigroupoidFn; });
// Generated by psc version 0.10.3
var Semigroupoid = function (compose) {
this.compose = compose;
};
var semigroupoidFn = new Semigroupoid(function (f) {
return function (g) {
return function (x) {
return f(g(x));
};
};
});
var compose = function (dict) {
return dict.compose;
};
var composeFlipped = function (dictSemigroupoid) {
return function (f) {
return function (g) {
return compose(dictSemigroupoid)(g)(f);
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 15 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Data_Ring__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Unit__ = __webpack_require__(0);
/* unused harmony export CommutativeRing */
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return commutativeRingInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return commutativeRingNumber; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return commutativeRingUnit; });
// Generated by psc version 0.10.3
var CommutativeRing = function (__superclass_Data$dotRing$dotRing_0) {
this["__superclass_Data.Ring.Ring_0"] = __superclass_Data$dotRing$dotRing_0;
};
var commutativeRingUnit = new CommutativeRing(function () {
return __WEBPACK_IMPORTED_MODULE_0__Data_Ring__["b" /* ringUnit */];
});
var commutativeRingNumber = new CommutativeRing(function () {
return __WEBPACK_IMPORTED_MODULE_0__Data_Ring__["c" /* ringNumber */];
});
var commutativeRingInt = new CommutativeRing(function () {
return __WEBPACK_IMPORTED_MODULE_0__Data_Ring__["d" /* ringInt */];
});
//# sourceMappingURL=index.js.map
/***/ },
/* 16 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(36);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Void__ = __webpack_require__(12);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return Eq; });
/* unused harmony export eq */
/* unused harmony export notEq */
/* harmony export (binding) */ __webpack_require__.d(exports, "h", function() { return eqBoolean; });
/* harmony export (binding) */ __webpack_require__.d(exports, "f", function() { return eqInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return eqNumber; });
/* harmony export (binding) */ __webpack_require__.d(exports, "g", function() { return eqChar; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return eqString; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return eqUnit; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return eqVoid; });
/* harmony export (binding) */ __webpack_require__.d(exports, "i", function() { return eqArray; });
// Generated by psc version 0.10.3
var Eq = function (eq) {
this.eq = eq;
};
var eqVoid = new Eq(function (v) {
return function (v1) {
return true;
};
});
var eqUnit = new Eq(function (v) {
return function (v1) {
return true;
};
});
var eqString = new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* refEq */]);
var eqNumber = new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* refEq */]);
var eqInt = new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* refEq */]);
var eqChar = new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* refEq */]);
var eqBoolean = new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* refEq */]);
var eq = function (dict) {
return dict.eq;
};
var eqArray = function (dictEq) {
return new Eq(__WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* eqArrayImpl */](eq(dictEq)));
};
var notEq = function (dictEq) {
return function (x) {
return function (y) {
return eq(eqBoolean)(eq(dictEq)(x)(y))(false);
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 17 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Control_Bind__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Functor__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return Monad; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return ap; });
/* unused harmony export liftM1 */
/* unused harmony export monadFn */
/* unused harmony export monadArray */
// Generated by psc version 0.10.3
var Monad = function (__superclass_Control$dotApplicative$dotApplicative_0, __superclass_Control$dotBind$dotBind_1) {
this["__superclass_Control.Applicative.Applicative_0"] = __superclass_Control$dotApplicative$dotApplicative_0;
this["__superclass_Control.Bind.Bind_1"] = __superclass_Control$dotBind$dotBind_1;
};
var monadFn = new Monad(function () {
return __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__["c" /* applicativeFn */];
}, function () {
return __WEBPACK_IMPORTED_MODULE_2__Control_Bind__["b" /* bindFn */];
});
var monadArray = new Monad(function () {
return __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__["d" /* applicativeArray */];
}, function () {
return __WEBPACK_IMPORTED_MODULE_2__Control_Bind__["c" /* bindArray */];
});
var liftM1 = function (dictMonad) {
return function (f) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_2__Control_Bind__["d" /* bind */](dictMonad["__superclass_Control.Bind.Bind_1"]())(a)(function (v) {
return __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__["e" /* pure */](dictMonad["__superclass_Control.Applicative.Applicative_0"]())(f(v));
});
};
};
};
var ap = function (dictMonad) {
return function (f) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_2__Control_Bind__["d" /* bind */](dictMonad["__superclass_Control.Bind.Bind_1"]())(f)(function (v) {
return __WEBPACK_IMPORTED_MODULE_2__Control_Bind__["d" /* bind */](dictMonad["__superclass_Control.Bind.Bind_1"]())(a)(function (v1) {
return __WEBPACK_IMPORTED_MODULE_0__Control_Applicative__["e" /* pure */](dictMonad["__superclass_Control.Applicative.Applicative_0"]())(v(v1));
});
});
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 18 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(37);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_CommutativeRing__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Ring__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Data_Unit__ = __webpack_require__(0);
/* unused harmony export EuclideanRing */
/* unused harmony export degree */
/* unused harmony export div */
/* unused harmony export mod */
/* unused harmony export euclideanRingInt */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return euclideanRingNumber; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return euclideanRingUnit; });
// Generated by psc version 0.10.3
var EuclideanRing = function (__superclass_Data$dotCommutativeRing$dotCommutativeRing_0, degree, div, mod) {
this["__superclass_Data.CommutativeRing.CommutativeRing_0"] = __superclass_Data$dotCommutativeRing$dotCommutativeRing_0;
this.degree = degree;
this.div = div;
this.mod = mod;
};
var mod = function (dict) {
return dict.mod;
};
var euclideanRingUnit = new EuclideanRing(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_CommutativeRing__["a" /* commutativeRingUnit */];
}, function (v) {
return 1;
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Unit__["a" /* unit */];
};
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Unit__["a" /* unit */];
};
});
var euclideanRingNumber = new EuclideanRing(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_CommutativeRing__["b" /* commutativeRingNumber */];
}, function (v) {
return 1;
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* numDiv */], function (v) {
return function (v1) {
return 0.0;
};
});
var euclideanRingInt = new EuclideanRing(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_CommutativeRing__["c" /* commutativeRingInt */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* intDegree */], __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* intDiv */], __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* intMod */]);
var div = function (dict) {
return dict.div;
};
var degree = function (dict) {
return dict.degree;
};
//# sourceMappingURL=index.js.map
/***/ },
/* 19 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(39);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* unused harmony export mkFn0 */
/* unused harmony export mkFn1 */
/* unused harmony export mkFn10 */
/* unused harmony export mkFn2 */
/* unused harmony export mkFn3 */
/* unused harmony export mkFn4 */
/* unused harmony export mkFn5 */
/* unused harmony export mkFn6 */
/* unused harmony export mkFn7 */
/* unused harmony export mkFn8 */
/* unused harmony export mkFn9 */
/* unused harmony export runFn0 */
/* unused harmony export runFn1 */
/* unused harmony export runFn10 */
/* unused harmony export runFn2 */
/* unused harmony export runFn3 */
/* unused harmony export runFn4 */
/* unused harmony export runFn5 */
/* unused harmony export runFn6 */
/* unused harmony export runFn7 */
/* unused harmony export runFn8 */
/* unused harmony export runFn9 */
// Generated by psc version 0.10.3
//# sourceMappingURL=index.js.map
var mkFn0 = __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* mkFn0 */];var mkFn1 = __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* mkFn1 */];var mkFn10 = __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* mkFn10 */];var mkFn2 = __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* mkFn2 */];var mkFn3 = __WEBPACK_IMPORTED_MODULE_0__foreign__["e" /* mkFn3 */];var mkFn4 = __WEBPACK_IMPORTED_MODULE_0__foreign__["f" /* mkFn4 */];var mkFn5 = __WEBPACK_IMPORTED_MODULE_0__foreign__["g" /* mkFn5 */];var mkFn6 = __WEBPACK_IMPORTED_MODULE_0__foreign__["h" /* mkFn6 */];var mkFn7 = __WEBPACK_IMPORTED_MODULE_0__foreign__["i" /* mkFn7 */];var mkFn8 = __WEBPACK_IMPORTED_MODULE_0__foreign__["j" /* mkFn8 */];var mkFn9 = __WEBPACK_IMPORTED_MODULE_0__foreign__["k" /* mkFn9 */];var runFn0 = __WEBPACK_IMPORTED_MODULE_0__foreign__["l" /* runFn0 */];var runFn1 = __WEBPACK_IMPORTED_MODULE_0__foreign__["m" /* runFn1 */];var runFn10 = __WEBPACK_IMPORTED_MODULE_0__foreign__["n" /* runFn10 */];var runFn2 = __WEBPACK_IMPORTED_MODULE_0__foreign__["o" /* runFn2 */];var runFn3 = __WEBPACK_IMPORTED_MODULE_0__foreign__["p" /* runFn3 */];var runFn4 = __WEBPACK_IMPORTED_MODULE_0__foreign__["q" /* runFn4 */];var runFn5 = __WEBPACK_IMPORTED_MODULE_0__foreign__["r" /* runFn5 */];var runFn6 = __WEBPACK_IMPORTED_MODULE_0__foreign__["s" /* runFn6 */];var runFn7 = __WEBPACK_IMPORTED_MODULE_0__foreign__["t" /* runFn7 */];var runFn8 = __WEBPACK_IMPORTED_MODULE_0__foreign__["u" /* runFn8 */];var runFn9 = __WEBPACK_IMPORTED_MODULE_0__foreign__["v" /* runFn9 */];
/***/ },
/* 20 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* unused harmony export HeytingAlgebra */
/* unused harmony export conj */
/* unused harmony export disj */
/* unused harmony export ff */
/* unused harmony export implies */
/* unused harmony export not */
/* unused harmony export tt */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return heytingAlgebraBoolean; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return heytingAlgebraUnit; });
/* unused harmony export heytingAlgebraFunction */
// Generated by psc version 0.10.3
var HeytingAlgebra = function (conj, disj, ff, implies, not, tt) {
this.conj = conj;
this.disj = disj;
this.ff = ff;
this.implies = implies;
this.not = not;
this.tt = tt;
};
var tt = function (dict) {
return dict.tt;
};
var not = function (dict) {
return dict.not;
};
var implies = function (dict) {
return dict.implies;
};
var heytingAlgebraUnit = new HeytingAlgebra(function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
}, __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */], function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
}, function (v) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
}, __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */]);
var ff = function (dict) {
return dict.ff;
};
var disj = function (dict) {
return dict.disj;
};
var heytingAlgebraBoolean = new HeytingAlgebra(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* boolConj */], __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* boolDisj */], false, function (a) {
return function (b) {
return disj(heytingAlgebraBoolean)(not(heytingAlgebraBoolean)(a))(b);
};
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* boolNot */], true);
var conj = function (dict) {
return dict.conj;
};
var heytingAlgebraFunction = function (dictHeytingAlgebra) {
return new HeytingAlgebra(function (f) {
return function (g) {
return function (a) {
return conj(dictHeytingAlgebra)(f(a))(g(a));
};
};
}, function (f) {
return function (g) {
return function (a) {
return disj(dictHeytingAlgebra)(f(a))(g(a));
};
};
}, function (v) {
return ff(dictHeytingAlgebra);
}, function (f) {
return function (g) {
return function (a) {
return implies(dictHeytingAlgebra)(f(a))(g(a));
};
};
}, function (f) {
return function (a) {
return not(dictHeytingAlgebra)(f(a));
};
}, function (v) {
return tt(dictHeytingAlgebra);
});
};
//# sourceMappingURL=index.js.map
/***/ },
/* 21 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Eq__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Data_Ring__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Data_Void__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Data_Semiring__ = __webpack_require__(3);
/* unused harmony export Ord */
/* unused harmony export abs */
/* unused harmony export between */
/* unused harmony export clamp */
/* unused harmony export compare */
/* unused harmony export comparing */
/* unused harmony export greaterThan */
/* unused harmony export greaterThanOrEq */
/* unused harmony export lessThan */
/* unused harmony export lessThanOrEq */
/* unused harmony export max */
/* unused harmony export min */
/* unused harmony export signum */
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return ordBoolean; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return ordInt; });
/* unused harmony export ordNumber */
/* unused harmony export ordString */
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return ordChar; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return ordUnit; });
/* unused harmony export ordVoid */
/* unused harmony export ordArray */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return ordOrdering; });
// Generated by psc version 0.10.3
var Ord = function (__superclass_Data$dotEq$dotEq_0, compare) {
this["__superclass_Data.Eq.Eq_0"] = __superclass_Data$dotEq$dotEq_0;
this.compare = compare;
};
var ordVoid = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["b" /* eqVoid */];
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */].value;
};
});
var ordUnit = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["c" /* eqUnit */];
}, function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */].value;
};
});
var ordString = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["d" /* eqString */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__["a" /* unsafeCompare */]);
var ordOrdering = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["b" /* eqOrdering */];
}, function (v) {
return function (v1) {
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */] && v1 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */] && v1 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */] && v1 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */] && v1 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */] && v1 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */].value;
};
if (v instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */].value;
};
throw new Error("Failed pattern match at Data.Ord line 68, column 3 - line 68, column 21: " + [ v.constructor.name, v1.constructor.name ]);
};
});
var ordNumber = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["e" /* eqNumber */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__["a" /* unsafeCompare */]);
var ordInt = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["f" /* eqInt */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__["a" /* unsafeCompare */]);
var ordChar = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["g" /* eqChar */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__["a" /* unsafeCompare */]);
var ordBoolean = new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["h" /* eqBoolean */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ord_Unsafe__["a" /* unsafeCompare */]);
var compare = function (dict) {
return dict.compare;
};
var comparing = function (dictOrd) {
return function (f) {
return __WEBPACK_IMPORTED_MODULE_2__Data_Function__["c" /* on */](compare(dictOrd))(f);
};
};
var greaterThan = function (dictOrd) {
return function (a1) {
return function (a2) {
var $22 = compare(dictOrd)(a1)(a2);
if ($22 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return true;
};
return false;
};
};
};
var greaterThanOrEq = function (dictOrd) {
return function (a1) {
return function (a2) {
var $23 = compare(dictOrd)(a1)(a2);
if ($23 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return false;
};
return true;
};
};
};
var signum = function (dictOrd) {
return function (dictRing) {
return function (x) {
var $24 = greaterThanOrEq(dictOrd)(x)(__WEBPACK_IMPORTED_MODULE_8__Data_Semiring__["d" /* zero */](dictRing["__superclass_Data.Semiring.Semiring_0"]()));
if ($24) {
return __WEBPACK_IMPORTED_MODULE_8__Data_Semiring__["e" /* one */](dictRing["__superclass_Data.Semiring.Semiring_0"]());
};
if (!$24) {
return __WEBPACK_IMPORTED_MODULE_5__Data_Ring__["a" /* negate */](dictRing)(__WEBPACK_IMPORTED_MODULE_8__Data_Semiring__["e" /* one */](dictRing["__superclass_Data.Semiring.Semiring_0"]()));
};
throw new Error("Failed pattern match at Data.Ord line 163, column 12 - line 163, column 46: " + [ $24.constructor.name ]);
};
};
};
var lessThan = function (dictOrd) {
return function (a1) {
return function (a2) {
var $25 = compare(dictOrd)(a1)(a2);
if ($25 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return true;
};
return false;
};
};
};
var lessThanOrEq = function (dictOrd) {
return function (a1) {
return function (a2) {
var $26 = compare(dictOrd)(a1)(a2);
if ($26 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return false;
};
return true;
};
};
};
var max = function (dictOrd) {
return function (x) {
return function (y) {
var $27 = compare(dictOrd)(x)(y);
if ($27 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return y;
};
if ($27 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */]) {
return x;
};
if ($27 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return x;
};
throw new Error("Failed pattern match at Data.Ord line 122, column 3 - line 125, column 12: " + [ $27.constructor.name ]);
};
};
};
var min = function (dictOrd) {
return function (x) {
return function (y) {
var $28 = compare(dictOrd)(x)(y);
if ($28 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return x;
};
if ($28 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */]) {
return x;
};
if ($28 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return y;
};
throw new Error("Failed pattern match at Data.Ord line 113, column 3 - line 116, column 12: " + [ $28.constructor.name ]);
};
};
};
var ordArray = function (dictOrd) {
return new Ord(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Eq__["i" /* eqArray */](dictOrd["__superclass_Data.Eq.Eq_0"]());
}, (function () {
var toDelta = function (x) {
return function (y) {
var $29 = compare(dictOrd)(x)(y);
if ($29 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["a" /* EQ */]) {
return 0;
};
if ($29 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["c" /* LT */]) {
return 1;
};
if ($29 instanceof __WEBPACK_IMPORTED_MODULE_4__Data_Ordering__["d" /* GT */]) {
return -1;
};
throw new Error("Failed pattern match at Data.Ord line 60, column 7 - line 65, column 1: " + [ $29.constructor.name ]);
};
};
return function (xs) {
return function (ys) {
return compare(ordInt)(0)(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* ordArrayImpl */](toDelta)(xs)(ys));
};
};
})());
};
var clamp = function (dictOrd) {
return function (low) {
return function (hi) {
return function (x) {
return min(dictOrd)(hi)(max(dictOrd)(low)(x));
};
};
};
};
var between = function (dictOrd) {
return function (low) {
return function (hi) {
return function (x) {
if (lessThan(dictOrd)(x)(low)) {
return false;
};
if (greaterThan(dictOrd)(x)(hi)) {
return false;
};
if (true) {
return true;
};
throw new Error("Failed pattern match at Data.Ord line 150, column 1 - line 153, column 16: " + [ low.constructor.name, hi.constructor.name, x.constructor.name ]);
};
};
};
};
var abs = function (dictOrd) {
return function (dictRing) {
return function (x) {
var $33 = greaterThanOrEq(dictOrd)(x)(__WEBPACK_IMPORTED_MODULE_8__Data_Semiring__["d" /* zero */](dictRing["__superclass_Data.Semiring.Semiring_0"]()));
if ($33) {
return x;
};
if (!$33) {
return __WEBPACK_IMPORTED_MODULE_5__Data_Ring__["a" /* negate */](dictRing)(x);
};
throw new Error("Failed pattern match at Data.Ord line 158, column 9 - line 158, column 42: " + [ $33.constructor.name ]);
};
};
};
//# sourceMappingURL=index.js.map
/***/ },
/* 22 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Void__ = __webpack_require__(12);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return Semigroup; });
/* unused harmony export append */
/* unused harmony export semigroupString */
/* unused harmony export semigroupUnit */
/* unused harmony export semigroupVoid */
/* unused harmony export semigroupFn */
/* unused harmony export semigroupArray */
// Generated by psc version 0.10.3
var Semigroup = function (append) {
this.append = append;
};
var semigroupVoid = new Semigroup(function (v) {
return __WEBPACK_IMPORTED_MODULE_2__Data_Void__["a" /* absurd */];
});
var semigroupUnit = new Semigroup(function (v) {
return function (v1) {
return __WEBPACK_IMPORTED_MODULE_1__Data_Unit__["a" /* unit */];
};
});
var semigroupString = new Semigroup(__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* concatString */]);
var semigroupArray = new Semigroup(__WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* concatArray */]);
var append = function (dict) {
return dict.append;
};
var semigroupFn = function (dictSemigroup) {
return new Semigroup(function (f) {
return function (g) {
return function (x) {
return append(dictSemigroup)(f(x))(g(x));
};
};
});
};
//# sourceMappingURL=index.js.map
/***/ },
/* 23 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return makeEvents; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return hasListeners; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return send; });
/* unused harmony export sendImpl */
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return receive; });
/* unused harmony export receiveImpl */
function Events() {
this.index = 0;
this.length = 0;
this.listeners = [];
}
var makeEvents = function () {
return new Events();
};
var hasListeners = function (events) {
return events.listeners.length !== 0;
};
function send(events, value) {
var listeners = events.listeners;
// This causes it to not trigger listeners which are added while sending a value
events.length = listeners.length;
// TODO remove this later
if (events.index !== 0) {
throw new Error("Invalid state");
}
// All of this extra code is needed when a listener is removed while sending a value
for (;;) {
var index = events.index;
if (index < events.length) {
listeners[index](value);
++events.index;
} else {
break;
}
}
events.index = 0;
events.length = 0;
}
var sendImpl = function (events, value) {
return function () {
return send(events, value);
};
};
function receive(events, listener) {
events.listeners.push(listener);
var killed = false;
return function () {
if (!killed) {
killed = true;
var index = events.listeners.indexOf(listener);
if (index !== -1) {
events.listeners.splice(index, 1);
// This is needed when a listener is removed while sending a value
if (index < events.length) {
--events.length;
if (index <= events.index) {
--events.index;
}
}
}
}
};
}
var receiveImpl = function (events, listener) {
return function () {
return receive(events, function (value) {
return listener(value)();
});
};
};
/***/ },
/* 24 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__ = __webpack_require__(23);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return makeView; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return mapImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return applyImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "f", function() { return pureImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return bindImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return observeImpl; });
var empty = {};
function noop() {}
function View(f) {
this.fn = f;
this.listeners = __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["a" /* makeEvents */]();
this.value = empty;
this.stop = null;
}
var makeView = function (f) {
return new View(f);
};
function Pure(value) {
this.value = value;
}
function observe(view, push) {
// TODO make this faster ?
if (view instanceof Pure) {
push(view.value);
return noop;
} else {
var hasListeners = __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["d" /* hasListeners */](view.listeners);
var stop = __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["c" /* receive */](view.listeners, push);
// TODO verify that this is only called once ?
if (!hasListeners) {
// TODO what if it pushes after it's killed ?
view.stop = view.fn(function (value) {
if (view.value !== value) {
view.value = value;
return __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["b" /* send */](view.listeners, value);
}
});
} else if (view.value !== empty) {
push(view.value);
}
var stopped = false;
return function () {
if (!stopped) {
stopped = true;
stop();
if (!__WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["d" /* hasListeners */](view.listeners)) {
var f = view.stop;
view.value = empty;
view.stop = null;
return f();
}
}
};
}
}
var mapImpl = function (f, view) {
return new View(function (push) {
return observe(view, function (value) {
return push(f(value));
});
});
};
// TODO test this
// TODO verify that this follows the Apply laws
var applyImpl = function (viewF, view) {
return new View(function (push) {
var valueF = empty;
var value = empty;
var stopF = observe(viewF, function (f) {
valueF = f;
if (value !== empty) {
return push(valueF(value));
}
});
var stop = observe(view, function (v) {
value = v;
if (valueF !== empty) {
return push(valueF(value));
}
});
return function () {
stopF();
return stop();
};
});
};
var pureImpl = function (a) {
return new Pure(a);
};
var bindImpl = function (view, f) {
return new View(function (push) {
var inner = null;
var outer = observe(view, function (value) {
var old = inner;
inner = observe(f(value), push);
if (old !== null) {
return old();
}
});
return function () {
outer();
var old = inner;
if (old !== null) {
inner = null;
return old();
}
};
});
};
var observeImpl = function (view, push) {
return function () {
return observe(view, function (value) {
return push(value)();
});
};
};
/***/ },
/* 25 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(24);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Prelude__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Function_Uncurried__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Monad_Eff__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Resource__ = __webpack_require__(53);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Control_Bind__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Control_Applicative__ = __webpack_require__(6);
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return ToView; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return observe; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return view; });
/* unused harmony export functorView */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return applyView; });
/* unused harmony export bindView */
/* unused harmony export applicativeView */
// Generated by psc version 0.10.3
var ToView = function (view) {
this.view = view;
};
var view = function (dict) {
return dict.view;
};
var observe = function (view1) {
return function (f) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* observeImpl */](view1, f);
};
};
var functorView = new __WEBPACK_IMPORTED_MODULE_5__Data_Functor__["b" /* Functor */](function (f) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* mapImpl */](f, a);
};
});
var applyView = new __WEBPACK_IMPORTED_MODULE_6__Control_Apply__["b" /* Apply */](function () {
return functorView;
}, function (f) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* applyImpl */](f, a);
};
});
var bindView = new __WEBPACK_IMPORTED_MODULE_7__Control_Bind__["a" /* Bind */](function () {
return applyView;
}, function (a) {
return function (f) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["e" /* bindImpl */](a, f);
};
});
var applicativeView = new __WEBPACK_IMPORTED_MODULE_8__Control_Applicative__["a" /* Applicative */](function () {
return applyView;
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["f" /* pureImpl */]);
//# sourceMappingURL=index.js.map
/***/ },
/* 26 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Prelude__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Apply__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Control_Monad_Eff__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Monad_Eff_Console__ = __webpack_require__(30);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Mutable__ = __webpack_require__(52);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__View__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Control_Bind__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Data_Function__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Data_Functor__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Data_Show__ = __webpack_require__(5);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return main; });
// Generated by psc version 0.10.3
var main = function __do() {
var v = __WEBPACK_IMPORTED_MODULE_4__Mutable__["a" /* makeMutable */](1)();
var v1 = __WEBPACK_IMPORTED_MODULE_4__Mutable__["a" /* makeMutable */](2)();
var v2 = __WEBPACK_IMPORTED_MODULE_4__Mutable__["a" /* makeMutable */](3)();
__WEBPACK_IMPORTED_MODULE_8__Data_Functor__["a" /* void */](__WEBPACK_IMPORTED_MODULE_2__Control_Monad_Eff__["a" /* functorEff */])(__WEBPACK_IMPORTED_MODULE_5__View__["a" /* observe */](__WEBPACK_IMPORTED_MODULE_1__Control_Apply__["a" /* lift3 */](__WEBPACK_IMPORTED_MODULE_5__View__["b" /* applyView */])(function (a) {
return function (b) {
return function (c) {
return (a + b | 0) + c | 0;
};
};
})(__WEBPACK_IMPORTED_MODULE_5__View__["c" /* view */](__WEBPACK_IMPORTED_MODULE_4__Mutable__["b" /* toViewMutable */])(v))(__WEBPACK_IMPORTED_MODULE_5__View__["c" /* view */](__WEBPACK_IMPORTED_MODULE_4__Mutable__["b" /* toViewMutable */])(v1))(__WEBPACK_IMPORTED_MODULE_5__View__["c" /* view */](__WEBPACK_IMPORTED_MODULE_4__Mutable__["b" /* toViewMutable */])(v2)))(function (a) {
return __WEBPACK_IMPORTED_MODULE_3__Control_Monad_Eff_Console__["a" /* log */](__WEBPACK_IMPORTED_MODULE_10__Data_Show__["a" /* show */](__WEBPACK_IMPORTED_MODULE_10__Data_Show__["b" /* showInt */])(a));
}))();
__WEBPACK_IMPORTED_MODULE_4__Mutable__["c" /* set */](v)(20)();
__WEBPACK_IMPORTED_MODULE_4__Mutable__["c" /* set */](v1)(30)();
return __WEBPACK_IMPORTED_MODULE_4__Mutable__["c" /* set */](v2)(40)();
};
//# sourceMappingURL=index.js.map
/***/ },
/* 27 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return arrayApply; });
// module Control.Apply
var arrayApply = function (fs) {
return function (xs) {
var result = [];
var n = 0;
for (var i = 0, l = fs.length; i < l; i++) {
for (var j = 0, k = xs.length; j < k; j++) {
result[n++] = fs[i](xs[j]);
}
}
return result;
};
};
/***/ },
/* 28 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return arrayBind; });
// module Control.Bind
var arrayBind = function (arr) {
return function (f) {
var result = [];
for (var i = 0, l = arr.length; i < l; i++) {
Array.prototype.push.apply(result, f(arr[i]));
}
return result;
};
};
/***/ },
/* 29 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return log; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return warn; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return error; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return info; });
// module Control.Monad.Eff.Console
var log = function (s) {
return function () {
console.log(s);
return {};
};
};
var warn = function (s) {
return function () {
console.warn(s);
return {};
};
};
var error = function (s) {
return function () {
console.error(s);
return {};
};
};
var info = function (s) {
return function () {
console.info(s);
return {};
};
};
/***/ },
/* 30 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(29);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Monad_Eff__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Show__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Unit__ = __webpack_require__(0);
/* unused harmony export errorShow */
/* unused harmony export infoShow */
/* unused harmony export logShow */
/* unused harmony export warnShow */
/* unused harmony export error */
/* unused harmony export info */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return log; });
/* unused harmony export warn */
// Generated by psc version 0.10.3
var warnShow = function (dictShow) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* warn */](__WEBPACK_IMPORTED_MODULE_2__Data_Show__["a" /* show */](dictShow)(a));
};
};
var logShow = function (dictShow) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* log */](__WEBPACK_IMPORTED_MODULE_2__Data_Show__["a" /* show */](dictShow)(a));
};
};
var infoShow = function (dictShow) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* info */](__WEBPACK_IMPORTED_MODULE_2__Data_Show__["a" /* show */](dictShow)(a));
};
};
var errorShow = function (dictShow) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* error */](__WEBPACK_IMPORTED_MODULE_2__Data_Show__["a" /* show */](dictShow)(a));
};
};
//# sourceMappingURL=index.js.map
var error = __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* error */];var info = __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* info */];var log = __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* log */];var warn = __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* warn */];
/***/ },
/* 31 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return pureE; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return bindE; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return runPure; });
/* harmony export (binding) */ __webpack_require__.d(exports, "f", function() { return untilE; });
/* harmony export (binding) */ __webpack_require__.d(exports, "g", function() { return whileE; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return forE; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return foreachE; });
// module Control.Monad.Eff
var pureE = function (a) {
return function () {
return a;
};
};
var bindE = function (a) {
return function (f) {
return function () {
return f(a())();
};
};
};
var runPure = function (f) {
return f();
};
var untilE = function (f) {
return function () {
while (!f());
return {};
};
};
var whileE = function (f) {
return function (a) {
return function () {
while (f()) {
a();
}
return {};
};
};
};
var forE = function (lo) {
return function (hi) {
return function (f) {
return function () {
for (var i = lo; i < hi; i++) {
f(i)();
}
};
};
};
};
var foreachE = function (as) {
return function (f) {
return function () {
for (var i = 0, l = as.length; i < l; i++) {
f(as[i])();
}
};
};
};
/***/ },
/* 32 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* unused harmony export otherwise */
// Generated by psc version 0.10.3
var otherwise = true;
//# sourceMappingURL=index.js.map
/***/ },
/* 33 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Data_HeytingAlgebra__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Unit__ = __webpack_require__(0);
/* unused harmony export BooleanAlgebra */
/* unused harmony export booleanAlgebraBoolean */
/* unused harmony export booleanAlgebraUnit */
// Generated by psc version 0.10.3
var BooleanAlgebra = function (__superclass_Data$dotHeytingAlgebra$dotHeytingAlgebra_0) {
this["__superclass_Data.HeytingAlgebra.HeytingAlgebra_0"] = __superclass_Data$dotHeytingAlgebra$dotHeytingAlgebra_0;
};
var booleanAlgebraUnit = new BooleanAlgebra(function () {
return __WEBPACK_IMPORTED_MODULE_0__Data_HeytingAlgebra__["a" /* heytingAlgebraUnit */];
});
var booleanAlgebraBoolean = new BooleanAlgebra(function () {
return __WEBPACK_IMPORTED_MODULE_0__Data_HeytingAlgebra__["b" /* heytingAlgebraBoolean */];
});
//# sourceMappingURL=index.js.map
/***/ },
/* 34 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return topInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return bottomInt; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return topChar; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return bottomChar; });
// module Data.Bounded
var topInt = 2147483647;
var bottomInt = -2147483648;
var topChar = String.fromCharCode(65535);
var bottomChar = String.fromCharCode(0);
/***/ },
/* 35 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(34);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Ord__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Unit__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Ordering__ = __webpack_require__(11);
/* unused harmony export Bounded */
/* unused harmony export bottom */
/* unused harmony export top */
/* unused harmony export boundedBoolean */
/* unused harmony export boundedInt */
/* unused harmony export boundedChar */
/* unused harmony export boundedOrdering */
/* unused harmony export boundedUnit */
// Generated by psc version 0.10.3
var Bounded = function (__superclass_Data$dotOrd$dotOrd_0, bottom, top) {
this["__superclass_Data.Ord.Ord_0"] = __superclass_Data$dotOrd$dotOrd_0;
this.bottom = bottom;
this.top = top;
};
var top = function (dict) {
return dict.top;
};
var boundedUnit = new Bounded(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Ord__["a" /* ordUnit */];
}, __WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */], __WEBPACK_IMPORTED_MODULE_2__Data_Unit__["a" /* unit */]);
var boundedOrdering = new Bounded(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Ord__["b" /* ordOrdering */];
}, __WEBPACK_IMPORTED_MODULE_3__Data_Ordering__["c" /* LT */].value, __WEBPACK_IMPORTED_MODULE_3__Data_Ordering__["d" /* GT */].value);
var boundedInt = new Bounded(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Ord__["c" /* ordInt */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* bottomInt */], __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* topInt */]);
var boundedChar = new Bounded(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Ord__["d" /* ordChar */];
}, __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* bottomChar */], __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* topChar */]);
var boundedBoolean = new Bounded(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_Ord__["e" /* ordBoolean */];
}, false, true);
var bottom = function (dict) {
return dict.bottom;
};
//# sourceMappingURL=index.js.map
/***/ },
/* 36 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return refEq; });
/* unused harmony export refIneq */
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return eqArrayImpl; });
// module Data.Eq
var refEq = function (r1) {
return function (r2) {
return r1 === r2;
};
};
var refIneq = function (r1) {
return function (r2) {
return r1 !== r2;
};
};
var eqArrayImpl = function (f) {
return function (xs) {
return function (ys) {
if (xs.length !== ys.length) return false;
for (var i = 0; i < xs.length; i++) {
if (!f(xs[i])(ys[i])) return false;
}
return true;
};
};
};
/***/ },
/* 37 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return intDegree; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return intDiv; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return intMod; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return numDiv; });
// module Data.EuclideanRing
var intDegree = function (x) {
return Math.abs(x);
};
var intDiv = function (x) {
return function (y) {
/* jshint bitwise: false */
return x / y | 0;
};
};
var intMod = function (x) {
return function (y) {
return x % y;
};
};
var numDiv = function (n1) {
return function (n2) {
return n1 / n2;
};
};
/***/ },
/* 38 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Data_CommutativeRing__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_EuclideanRing__ = __webpack_require__(18);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Ring__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Data_Semiring__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Data_Unit__ = __webpack_require__(0);
/* unused harmony export Field */
/* unused harmony export fieldNumber */
/* unused harmony export fieldUnit */
// Generated by psc version 0.10.3
var Field = function (__superclass_Data$dotEuclideanRing$dotEuclideanRing_0) {
this["__superclass_Data.EuclideanRing.EuclideanRing_0"] = __superclass_Data$dotEuclideanRing$dotEuclideanRing_0;
};
var fieldUnit = new Field(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_EuclideanRing__["a" /* euclideanRingUnit */];
});
var fieldNumber = new Field(function () {
return __WEBPACK_IMPORTED_MODULE_1__Data_EuclideanRing__["b" /* euclideanRingNumber */];
});
//# sourceMappingURL=index.js.map
/***/ },
/* 39 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return mkFn0; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return mkFn1; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return mkFn2; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return mkFn3; });
/* harmony export (binding) */ __webpack_require__.d(exports, "f", function() { return mkFn4; });
/* harmony export (binding) */ __webpack_require__.d(exports, "g", function() { return mkFn5; });
/* harmony export (binding) */ __webpack_require__.d(exports, "h", function() { return mkFn6; });
/* harmony export (binding) */ __webpack_require__.d(exports, "i", function() { return mkFn7; });
/* harmony export (binding) */ __webpack_require__.d(exports, "j", function() { return mkFn8; });
/* harmony export (binding) */ __webpack_require__.d(exports, "k", function() { return mkFn9; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return mkFn10; });
/* harmony export (binding) */ __webpack_require__.d(exports, "l", function() { return runFn0; });
/* harmony export (binding) */ __webpack_require__.d(exports, "m", function() { return runFn1; });
/* harmony export (binding) */ __webpack_require__.d(exports, "o", function() { return runFn2; });
/* harmony export (binding) */ __webpack_require__.d(exports, "p", function() { return runFn3; });
/* harmony export (binding) */ __webpack_require__.d(exports, "q", function() { return runFn4; });
/* harmony export (binding) */ __webpack_require__.d(exports, "r", function() { return runFn5; });
/* harmony export (binding) */ __webpack_require__.d(exports, "s", function() { return runFn6; });
/* harmony export (binding) */ __webpack_require__.d(exports, "t", function() { return runFn7; });
/* harmony export (binding) */ __webpack_require__.d(exports, "u", function() { return runFn8; });
/* harmony export (binding) */ __webpack_require__.d(exports, "v", function() { return runFn9; });
/* harmony export (binding) */ __webpack_require__.d(exports, "n", function() { return runFn10; });
// module Data.Function.Uncurried
var mkFn0 = function (fn) {
return function () {
return fn({});
};
};
var mkFn1 = function (fn) {
return function (a) {
return fn(a);
};
};
var mkFn2 = function (fn) {
/* jshint maxparams: 2 */
return function (a, b) {
return fn(a)(b);
};
};
var mkFn3 = function (fn) {
/* jshint maxparams: 3 */
return function (a, b, c) {
return fn(a)(b)(c);
};
};
var mkFn4 = function (fn) {
/* jshint maxparams: 4 */
return function (a, b, c, d) {
return fn(a)(b)(c)(d);
};
};
var mkFn5 = function (fn) {
/* jshint maxparams: 5 */
return function (a, b, c, d, e) {
return fn(a)(b)(c)(d)(e);
};
};
var mkFn6 = function (fn) {
/* jshint maxparams: 6 */
return function (a, b, c, d, e, f) {
return fn(a)(b)(c)(d)(e)(f);
};
};
var mkFn7 = function (fn) {
/* jshint maxparams: 7 */
return function (a, b, c, d, e, f, g) {
return fn(a)(b)(c)(d)(e)(f)(g);
};
};
var mkFn8 = function (fn) {
/* jshint maxparams: 8 */
return function (a, b, c, d, e, f, g, h) {
return fn(a)(b)(c)(d)(e)(f)(g)(h);
};
};
var mkFn9 = function (fn) {
/* jshint maxparams: 9 */
return function (a, b, c, d, e, f, g, h, i) {
return fn(a)(b)(c)(d)(e)(f)(g)(h)(i);
};
};
var mkFn10 = function (fn) {
/* jshint maxparams: 10 */
return function (a, b, c, d, e, f, g, h, i, j) {
return fn(a)(b)(c)(d)(e)(f)(g)(h)(i)(j);
};
};
var runFn0 = function (fn) {
return fn();
};
var runFn1 = function (fn) {
return function (a) {
return fn(a);
};
};
var runFn2 = function (fn) {
return function (a) {
return function (b) {
return fn(a, b);
};
};
};
var runFn3 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return fn(a, b, c);
};
};
};
};
var runFn4 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return fn(a, b, c, d);
};
};
};
};
};
var runFn5 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return fn(a, b, c, d, e);
};
};
};
};
};
};
var runFn6 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return function (f) {
return fn(a, b, c, d, e, f);
};
};
};
};
};
};
};
var runFn7 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return function (f) {
return function (g) {
return fn(a, b, c, d, e, f, g);
};
};
};
};
};
};
};
};
var runFn8 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return function (f) {
return function (g) {
return function (h) {
return fn(a, b, c, d, e, f, g, h);
};
};
};
};
};
};
};
};
};
var runFn9 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return function (f) {
return function (g) {
return function (h) {
return function (i) {
return fn(a, b, c, d, e, f, g, h, i);
};
};
};
};
};
};
};
};
};
};
var runFn10 = function (fn) {
return function (a) {
return function (b) {
return function (c) {
return function (d) {
return function (e) {
return function (f) {
return function (g) {
return function (h) {
return function (i) {
return function (j) {
return fn(a, b, c, d, e, f, g, h, i, j);
};
};
};
};
};
};
};
};
};
};
};
/***/ },
/* 40 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return arrayMap; });
// module Data.Functor
var arrayMap = function (f) {
return function (arr) {
var l = arr.length;
var result = new Array(l);
for (var i = 0; i < l; i++) {
result[i] = f(arr[i]);
}
return result;
};
};
/***/ },
/* 41 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return boolConj; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return boolDisj; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return boolNot; });
// module Data.HeytingAlgebra
var boolConj = function (b1) {
return function (b2) {
return b1 && b2;
};
};
var boolDisj = function (b1) {
return function (b2) {
return b1 || b2;
};
};
var boolNot = function (b) {
return !b;
};
/***/ },
/* 42 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
// Generated by psc version 0.10.3
//# sourceMappingURL=index.js.map
/***/ },
/* 43 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return unsafeCompareImpl; });
// module Data.Ord.Unsafe
var unsafeCompareImpl = function (lt) {
return function (eq) {
return function (gt) {
return function (x) {
return function (y) {
return x < y ? lt : x > y ? gt : eq;
};
};
};
};
};
/***/ },
/* 44 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(43);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Data_Ordering__ = __webpack_require__(11);
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return unsafeCompare; });
// Generated by psc version 0.10.3
var unsafeCompare = __WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* unsafeCompareImpl */](__WEBPACK_IMPORTED_MODULE_1__Data_Ordering__["c" /* LT */].value)(__WEBPACK_IMPORTED_MODULE_1__Data_Ordering__["a" /* EQ */].value)(__WEBPACK_IMPORTED_MODULE_1__Data_Ordering__["d" /* GT */].value);
//# sourceMappingURL=index.js.map
/***/ },
/* 45 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return ordArrayImpl; });
// module Data.Ord
var ordArrayImpl = function (f) {
return function (xs) {
return function (ys) {
var i = 0;
var xlen = xs.length;
var ylen = ys.length;
while (i < xlen && i < ylen) {
var x = xs[i];
var y = ys[i];
var o = f(x)(y);
if (o !== 0) {
return o;
}
i++;
}
if (xlen === ylen) {
return 0;
} else if (xlen > ylen) {
return -1;
} else {
return 1;
}
};
};
};
/***/ },
/* 46 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return intSub; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return numSub; });
// module Data.Ring
var intSub = function (x) {
return function (y) {
/* jshint bitwise: false */
return x - y | 0;
};
};
var numSub = function (n1) {
return function (n2) {
return n1 - n2;
};
};
/***/ },
/* 47 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return concatString; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return concatArray; });
// module Data.Semigroup
var concatString = function (s1) {
return function (s2) {
return s1 + s2;
};
};
var concatArray = function (xs) {
return function (ys) {
return xs.concat(ys);
};
};
/***/ },
/* 48 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return intAdd; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return intMul; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return numAdd; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return numMul; });
// module Data.Semiring
var intAdd = function (x) {
return function (y) {
/* jshint bitwise: false */
return x + y | 0;
};
};
var intMul = function (x) {
return function (y) {
/* jshint bitwise: false */
return x * y | 0;
};
};
var numAdd = function (n1) {
return function (n2) {
return n1 + n2;
};
};
var numMul = function (n1) {
return function (n2) {
return n1 * n2;
};
};
/***/ },
/* 49 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return showIntImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return showNumberImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return showCharImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return showStringImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "e", function() { return showArrayImpl; });
// module Data.Show
var showIntImpl = function (n) {
return n.toString();
};
var showNumberImpl = function (n) {
var str = n.toString();
return isNaN(str + ".0") ? str : str + ".0";
};
var showCharImpl = function (c) {
var code = c.charCodeAt(0);
if (code < 0x20 || code === 0x7F) {
switch (c) {
case "\x07": return "'\\a'";
case "\b": return "'\\b'";
case "\f": return "'\\f'";
case "\n": return "'\\n'";
case "\r": return "'\\r'";
case "\t": return "'\\t'";
case "\v": return "'\\v'";
}
return "'\\" + code.toString(10) + "'";
}
return c === "'" || c === "\\" ? "'\\" + c + "'" : "'" + c + "'";
};
var showStringImpl = function (s) {
var l = s.length;
return "\"" + s.replace(
/[\0-\x1F\x7F"\\]/g,
function (c, i) { // jshint ignore:line
switch (c) {
case "\"":
case "\\":
return "\\" + c;
case "\x07": return "\\a";
case "\b": return "\\b";
case "\f": return "\\f";
case "\n": return "\\n";
case "\r": return "\\r";
case "\t": return "\\t";
case "\v": return "\\v";
}
var k = i + 1;
var empty = k < l && s[k] >= "0" && s[k] <= "9" ? "\\&" : "";
return "\\" + c.charCodeAt(0).toString(10) + empty;
}
) + "\"";
};
var showArrayImpl = function (f) {
return function (xs) {
var ss = [];
for (var i = 0, l = xs.length; i < l; i++) {
ss[i] = f(xs[i]);
}
return "[" + ss.join(",") + "]";
};
};
/***/ },
/* 50 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return unit; });
// module Data.Unit
var unit = {};
/***/ },
/* 51 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__View_foreign_js__ = __webpack_require__(24);
/* harmony export (binding) */ __webpack_require__.d(exports, "d", function() { return makeMutable; });
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return get; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return setImpl; });
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return viewImpl; });
function Mutable(value) {
this.value = value;
this.listeners = __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["a" /* makeEvents */]();
}
var makeMutable = function (value) {
return function () {
return new Mutable(value);
};
};
var get = function (mutable) {
return function () {
return mutable.value;
};
};
var setImpl = function (mutable, value) {
return function () {
if (mutable.value !== value) {
mutable.value = value;
return __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["b" /* send */](mutable.listeners, value);
}
};
};
var viewImpl = function (mutable) {
return __WEBPACK_IMPORTED_MODULE_1__View_foreign_js__["a" /* makeView */](function (push) {
var stop = __WEBPACK_IMPORTED_MODULE_0__Events_foreign_js__["c" /* receive */](mutable.listeners, push);
push(mutable.value);
return stop;
});
};
/***/ },
/* 52 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foreign__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Prelude__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Data_Function_Uncurried__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Control_Monad_Eff__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__View__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Data_Unit__ = __webpack_require__(0);
/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return set; });
/* harmony export (binding) */ __webpack_require__.d(exports, "b", function() { return toViewMutable; });
/* unused harmony export get */
/* harmony export (binding) */ __webpack_require__.d(exports, "a", function() { return makeMutable; });
// Generated by psc version 0.10.3
var toViewMutable = new __WEBPACK_IMPORTED_MODULE_4__View__["d" /* ToView */](__WEBPACK_IMPORTED_MODULE_0__foreign__["a" /* viewImpl */]);
var set = function (m) {
return function (a) {
return __WEBPACK_IMPORTED_MODULE_0__foreign__["b" /* setImpl */](m, a, __WEBPACK_IMPORTED_MODULE_5__Data_Unit__["a" /* unit */]);
};
};
//# sourceMappingURL=index.js.map
var get = __WEBPACK_IMPORTED_MODULE_0__foreign__["c" /* get */];var makeMutable = __WEBPACK_IMPORTED_MODULE_0__foreign__["d" /* makeMutable */];
/***/ },
/* 53 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Prelude__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Control_Monad_Eff__ = __webpack_require__(8);
/* unused harmony export Resource */
/* unused harmony export cleanup */
// Generated by psc version 0.10.3
var Resource = function (x) {
return x;
};
var cleanup = function (v) {
return v;
};
//# sourceMappingURL=index.js.map
/***/ },
/* 54 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__output_Main__ = __webpack_require__(26);
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__output_Main__["a" /* main */])();
/***/ }
/******/ ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment