Using lazy text for static backend
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)