Skip to content

Using lazy text for static backend

Athan Clark requested to merge lazy-text-static-backend-20210815 into master

Allocating strict text strings doesn't make sense for potentially large values, which is why Data.Text.Lazy exists - in fact, WAI's responses use lazy datatypes by default (i.e. responseLBS). This commit changes the renderStatic function to return a lazy text value, rather than a strict one. However, strict text still exists throughout the Shpadoinkle-core Html type, so nothing else is affected.

Issue referenced: #135 (closed)

Merge request reports