Sintrastes / hafly

Dynamic embeddable scripting language in Haskell.
https://sintrastes.github.io/hafly
GNU Affero General Public License v3.0
3 stars 0 forks source link

Allow for `Dynamic`s to be displayed properly. #33

Closed Sintrastes closed 1 year ago

Sintrastes commented 1 year ago

Currently, we have:

> [1,2,3,4.2]
[<<Int>>,<<Int>>,<<Int>>,<<Double>>]

whereas it would be nice if we had:

> [1, 2, 3, 4.2]
[1, 2, 3, 4.2]

Maybe the best approach for this would be to have the interpreter see if there is a show instance for each element of the list, and try to display it that way -- otherwise, falling-back to just displaying the type?