on master help sign in
Change the type of `show`. It now produces a `String`.
02adbe1evancz
core-js/Graphics/Element.js+1−1
@@ -234,7 +234,7 @@ ElmCode.Graphics.Element = function() {
234 return basicNewElement(EText_39("left")(txt),p[0],p[1])
234 return basicNewElement(EText_39("left")(txt),p[0],p[1])
235 }
235 }
236 function asText(v) {
236 function asText(v) {
237− var txt = Value.show(v);
237+ var txt = Value.toText(Value.show(v));
238 var p = Value.getTextSize(0,0,txt);
238 var p = Value.getTextSize(0,0,txt);
239 return basicNewElement(EText_39("left")(txt),p[0],p[1])
239 return basicNewElement(EText_39("left")(txt),p[0],p[1])
240 }
240 }
core-js/Value.js+1−3
@@ -199,9 +199,7 @@ var Value = function(){
199 }
199 }
200 return v+"";
200 return v+"";
201 };
201 };
202− var show = function(v) {
202+ var show = function(v) { return str(toString(v)); };
203− return Text.monospace(properEscape(toString(v)));
204− };
205 var append = function(xs,ys) {
203 var append = function(xs,ys) {
206 if (typeof xs === "string" && typeof ys === "string") {
204 if (typeof xs === "string" && typeof ys === "string") {
207 return xs.concat(ys);
205 return xs.concat(ys);