git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
19 lines 764 B history raw
1const $Html = (tag, _1, _2) => ({tag, _1, _2});
2const Elem = value0 => value1 => $Html("Elem", value0, value1);
3const Text = value0 => $Html("Text", value0);
4const h11 = /* #__PURE__ */ (() => {
5 const $0 = Elem("h1");
6 return x => $0([x]);
7})();
8const h21 = /* #__PURE__ */ (() => {
9 const $0 = Elem("h2");
10 return x => $0([x]);
11})();
12const p1 = /* #__PURE__ */ Elem("p");
13const section1 = /* #__PURE__ */ Elem("section");
14const article1 = /* #__PURE__ */ Elem("article");
15const test = user => section1([
16 h11($Html("Text", "Posts for " + user)),
17 article1([h21($Html("Text", "The first post")), p1([$Html("Text", "This is the first post."), $Html("Text", "Not much else to say.")])])
18]);
19export {$Html, Elem, Text, article1, h11, h21, p1, section1, test};