fromText -package:system-filepath

O(1). A Builder taking a Text, satisfying
Copy Text in a StrictBuilder
If the passed in Text can be parsed as an ASCII representation of a UUID, it will be. The hyphens may not be omitted.
O(n). Serialize a strict Unicode Text value using the UTF-8 encoding.
O(n). Serialize the lower 8-bits of all characters in the strict text.
Construct ShortText from Text This is <math> with text-2 when the Text is not sliced. Previously it wasn't because Text used UTF-16 as its internal representation.
Deprecated: Use Data.Text.unpack instead
Convert Text to a FilePath.
Encode Text using UTF-8. Only available when building with text-2.0 and newer. Since Text is backed by a UTF-8 byte sequence, this does not perform a copy.
Override this to avoid extra String conversions.
Construct a CharIterator from a Unicode string.
Contructs a new data type instance Like fromString, but from a Text input instead of String.
fromText == fromString . Text.unpack
Converts a Text into a YiString using defaultChunkSize-sized chunks for the underlying tree.
Encode Text to ByteString using UTF-8.
Create Builder, containing a given Text.
>>> :set -XOverloadedStrings

>>> fromText "foo" <> fromText "bar"
"foobar"
For literal strings it is faster to use fromAddr instead of fromText.
Create from Text, linear time.
Create from Text, linear time.
Parse a Version from Text, returning an attoparsec error message in the Left case on failure.
Parsing function to create a Constraint from Text according to the rules specified here: https://github.com/npm/node-semver#ranges Advanced syntax is not yet supported.