将Elm表达式转换为字符串

时间:2018-03-03 17:50:12

标签: elm

有没有办法将Elm表达式转换为其代码的字符串表示形式?

e.g。

sourceString : a -> String

sourceString (1 + 3) == "(1 + 3)"

我没有听说过榆树的宏,但也许仍然有办法做到这一点?

0 个答案:

没有答案