co-dan / interactive-diagrams

Interactive-diagrams
39 stars 2 forks source link

Figure out a good way to serialize Data.Text #1

Closed co-dan closed 11 years ago

co-dan commented 11 years ago

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: https://github.com/co-dan/interactive-diagrams/blob/ffefbb43c3b23fe1c01ee8b0c5e5735a006460dc/display-src/Display.hs#L51

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

co-dan commented 11 years ago

there was a bug in that commit fix: https://github.com/co-dan/interactive-diagrams/commit/538685a3d73c6cc638db067b6f57d5fcb9cc5d9e