co-dan/interactive-diagrams

Figure out a good way to serialize Data.Text

Closed this issue · 1 comments

The whole task is to serialize DisplayResult which contains Data.Text.Lazy.

Since Text does not export any internal representation, the easiest way to serialize it is to convert it to String, like we are doing here:

instance Serialize TL.Text where

However, I don't think it's a particularly good solution.

there was a bug in that commit
fix: 538685a