pack package:rio

O(n) Convert a [Word8] into a ByteString. For applications with large numbers of string literals, pack can be a bottleneck. In such cases, consider using unsafePackAddress (GHC only).
O(n) Convert a '[Word8]' into a ByteString.
O(n) Convert a String into a Text. Subject to fusion. Performs replacement on invalid scalar values.
O(n) Convert a String into a Text. Subject to fusion. Performs replacement on invalid scalar values.
Lifted packCString
O(n) Converts a ByteString to a [Word8].
O(n) Converts a ByteString to a '[Word8]'.
O(n) Convert a Text into a String. Subject to fusion.
O(n) Convert a literal string into a Text. Subject to fusion. This is exposed solely for people writing GHC rewrite rules.