You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to preserve some of the debug information for complex types so that Debug.log would be more useful. This would only take effect when developing, not when doing a production (minified) bundle.
Some examples are below (generated names can be differnet)
recordPoint2D {
x : Number,
y : Number
}
componentMain {
funfoo {
""
}
funcomponentDidMount {
/* Prints `r {x:0, y:0}` It would be nice if this was `Point2D {x:0, y:0}` */Debug.log(Point2D(0, 0))
/* Prints an object `AI {_0: 'hello world', length: 1}` It would be nice if it would print the as-is `Maybe::Just("hello world")` */Debug.log(Maybe::Just("hello world"))
/* Prints `ƒ a() { return ''; }` It would be nice if this set the function name so it would print `ƒ foo() { return ''; }` */Debug.log(foo)
}
funrender : Html {
<div/>
}
}
The text was updated successfully, but these errors were encountered:
It would be nice to preserve some of the debug information for complex types so that
Debug.log
would be more useful. This would only take effect when developing, not when doing a production (minified) bundle.Some examples are below (generated names can be differnet)
The text was updated successfully, but these errors were encountered: