@@ -1,57 +1,60 @@
1−var elm_lang$core$Main$_op = {};
2−var elm_lang$core$Main$students = Elm.Native.Port.make(_elm).outbound("students",
3−function (v) {
4− return Elm.Native.List.make(_elm).toArray(v).map(function (v) {
5− return {name: v.name,age: v.age};
1+Elm.Main = Elm.Main || {};
2+Elm.Main.make = function (_elm) {
3+ "use strict";
4+ _elm.Main = _elm.Main || {};
5+ if (_elm.Main.values) return _elm.Main.values;
6+ var _op = {};
7+ var students = Elm.Native.Port.make(_elm).outbound("students",
8+ function (v) {
9+ return Elm.Native.List.make(_elm).toArray(v).map(function (v) {
10+ return {name: v.name,age: v.age};
11+ });
12+ },
13+ _utils.list([{_: {},age: 42,name: "Tom"}]));
14+ var time = Elm.Native.Port.make(_elm).outbound("time",
15+ function (v) {
16+ return v;
17+ },
18+ 3.14);
19+ var fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",
20+ function (v) {
21+ return v;
22+ },
23+ 42);
24+ var record = Elm.Native.Port.make(_elm).inbound("record",
25+ "{ x : Float, y : Float }",
26+ function (v) {
27+ return typeof v === "object" && "x" in v && "y" in v ? {_: {}
28+ ,x: typeof v.x === "number" ? v.x : _U.badPort("a number",v.x)
29+ ,y: typeof v.y === "number" ? v.y : _U.badPort("a number",
30+ v.y)} : _U.badPort("an object with fields `x`, `y`",v);
631 });
7−},
8−_utils.list([{_: {},age: 42,name: "Tom"}]));
9−var elm_lang$core$Main$time = Elm.Native.Port.make(_elm).outbound("time",
10−function (v) {
11− return v;
12−},
13−3.14);
14−var elm_lang$core$Main$fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",
15−function (v) {
16− return v;
17−},
18−42);
19−var elm_lang$core$Main$record = Elm.Native.Port.make(_elm).inbound("record",
20−"{ x : Float, y : Float }",
21−function (v) {
22− return typeof v === "object" && "x" in v && "y" in v ? {_: {}
23− ,x: typeof v.x === "number" ? v.x : _U.badPort("a number",
24− v.x)
25− ,y: typeof v.y === "number" ? v.y : _U.badPort("a number",
26− v.y)} : _U.badPort("an object with fields `x`, `y`",
27− v);
28−});
29−var elm_lang$core$Main$array = Elm.Native.Port.make(_elm).inbound("array",
30−"List Int",
31−function (v) {
32− return typeof v === "object" && v instanceof Array ? Elm.Native.List.make(_elm).fromArray(v.map(function (v) {
33− return typeof v === "number" ? v : _U.badPort("a number",
32+ var array = Elm.Native.Port.make(_elm).inbound("array",
33+ "List Int",
34+ function (v) {
35+ return typeof v === "object" && v instanceof Array ? Elm.Native.List.make(_elm).fromArray(v.map(function (v) {
36+ return typeof v === "number" ? v : _U.badPort("a number",v);
37+ })) : _U.badPort("an array",v);
38+ });
39+ var tuple = Elm.Native.Port.make(_elm).inbound("tuple",
40+ "(Float, Bool)",
41+ function (v) {
42+ return typeof v === "object" && v instanceof Array ? {ctor: "_Tuple2"
43+ ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",
44+ v[0])
45+ ,_1: typeof v[1] === "boolean" ? v[1] : _U.badPort("a boolean (true or false)",
46+ v[1])} : _U.badPort("an array",v);
47+ });
48+ var number = Elm.Native.Port.make(_elm).inbound("number",
49+ "Int",
50+ function (v) {
51+ return typeof v === "number" ? v : _U.badPort("a number",v);
52+ });
53+ var userID = Elm.Native.Port.make(_elm).inbound("userID",
54+ "String",
55+ function (v) {
56+ return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",
3457 v);
35− })) : _U.badPort("an array",v);
36−});
37−var elm_lang$core$Main$tuple = Elm.Native.Port.make(_elm).inbound("tuple",
38−"(Float, Bool)",
39−function (v) {
40− return typeof v === "object" && v instanceof Array ? {ctor: "_Tuple2"
41− ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",
42− v[0])
43− ,_1: typeof v[1] === "boolean" ? v[1] : _U.badPort("a boolean (true or false)",
44− v[1])} : _U.badPort("an array",v);
45−});
46−var elm_lang$core$Main$number = Elm.Native.Port.make(_elm).inbound("number",
47−"Int",
48−function (v) {
49− return typeof v === "number" ? v : _U.badPort("a number",
50− v);
51−});
52−var elm_lang$core$Main$userID = Elm.Native.Port.make(_elm).inbound("userID",
53−"String",
54−function (v) {
55− return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",
56− v);
57−});
58+ });
59+ return _elm.Main.values = {_op: _op};
60+};